smac.epm.random_epm

Classes

RandomEPM(configspace, types, bounds, seed)

EPM which returns random values on a call to fit.

class smac.epm.random_epm.RandomEPM(configspace, types, bounds, seed, instance_features=None, pca_components=None)[source]

Bases: smac.epm.base_epm.BaseEPM

EPM which returns random values on a call to fit.

Parameters
  • configspace (ConfigurationSpace) – Configuration space to tune for.

  • types (List[int]) – Specifies the number of categorical values of an input dimension where the i-th entry corresponds to the i-th input dimension. Let’s say we have 2 dimension where the first dimension consists of 3 different categorical choices and the second dimension is continuous than we have to pass [3, 0]. Note that we count starting from 0.

  • bounds (List[Tuple[float, float]]) – bounds of input dimensions: (lower, uppper) for continuous dims; (n_cat, np.nan) for categorical dims

  • seed (int) – The seed that is passed to the model library.

  • instance_features (np.ndarray (I, K), optional) – Contains the K dimensional instance features of the I different instances

  • pca_components (float) – Number of components to keep when using PCA to reduce dimensionality of instance features. Requires to set n_feats (> pca_dims).