deephyper.skopt.space.Dimension#

class deephyper.skopt.space.Dimension[source]#

Bases: object

Base class for search space dimensions.

Methods

inverse_transform

Inverse transform samples from the warped space back into the original space.

rvs

Draw random samples.

set_transformer

Setter for the transformer.

transform

Transform samples form the original space to a warped space.

Attributes

bounds

Bounds before the transform/preprocessing.

is_constant

Test if the dimension is a constant.

name

Name of the dimension.

prior

size

Dimensionality of sampel from the dimension before the transform/preprocessing.

transformed_bounds

Bounds after the transform/preprocessing.

transformed_size

Dimensionality of samples from the dimension after the transform/preprocessing.

property bounds#

Bounds before the transform/preprocessing.

inverse_transform(Xt)[source]#

Inverse transform samples from the warped space back into the original space.

property is_constant#

Test if the dimension is a constant.

property name#

Name of the dimension.

rvs(n_samples=1, random_state=None)[source]#

Draw random samples.

Args: n_samples : int or None

The number of samples to be drawn.

random_stateint, RandomState instance, or None (default)

Set random state to something other than None for reproducible results.

set_transformer()[source]#

Setter for the transformer.

property size#

Dimensionality of sampel from the dimension before the transform/preprocessing.

transform(X)[source]#

Transform samples form the original space to a warped space.

property transformed_bounds#

Bounds after the transform/preprocessing.

property transformed_size#

Dimensionality of samples from the dimension after the transform/preprocessing.