deephyper.skopt.utils.normalize_dimensions#

deephyper.skopt.utils.normalize_dimensions(dimensions)[source]#

Create a Space where all dimensions are normalized to unit range.

This is particularly useful for Gaussian process based regressors and is used internally by gp_minimize.

Parameters:

dimensions (list, shape (n_dims,)) –

List of search space dimensions. Each search dimension can be defined either as

  • a (lower_bound, upper_bound) tuple (for Real or Integer dimensions),

  • a (lower_bound, upper_bound, “prior”) tuple (for Real dimensions),

  • as a list of categories (for Categorical dimensions), or

  • an instance of a Dimension object (Real, Integer or Categorical).

NOTE: The upper and lower bounds are inclusive for Integer dimensions.