SamplingEngine

class aixd.sampler.engines.SamplingEngine(features: List[DataObject], seed: int = 1730710435)[source]

Bases: object

Initialises the sampling engine. The features are just related to the data objects, and contain the information on their type, dimensionality, etc.

Parameters:
  • features (List[str]) – Names of features in the samples that should be produced

  • seed (int, optional) – Seed value for reproducible results.

Methods

deserialise

Allows to initialise a SamplingEngine by passing the identifier string along with with any specific arguments.

reset_states

Resets the engine to its initial state, where all calls to sample and update are forgotten.

sample

Performs the sampling.

update

Updates the state of the sampling methods by providing the performance of the generated samples in the form of objectives and valid.