deephyper.hpo.gmm.GMMSampler#

class deephyper.hpo.gmm.GMMSampler(config_space, random_state=None)[source]#

Bases: object

Gaussian Mixture Model sampler.

Parameters:
  • config_space (ConfigSpace) – the configuration space used to check the conditions on the samples generated from the gaussian mixture model.

  • random_state (Union[int,RandomState], optional) – a random state for the sampler. Defaults to None.

Methods

check_variable_types

Utility that checks the columns of the dataframe against the config space.

fit

Fits the Gaussian mixture model.

sample

Generates samples from the Gaussian mixture model.

check_variable_types(df)[source]#

Utility that checks the columns of the dataframe against the config space.

fit(df: DataFrame)[source]#

Fits the Gaussian mixture model.

Parameters:

df (pd.DataFrame) – the dataframe used to fit the model.

sample(n_samples: int) DataFrame[source]#

Generates samples from the Gaussian mixture model.

Parameters:

n_samples (int) – the number of samples to generate.

Returns:

a dataframe with the generated samples.

Return type:

pd.DataFrame