skopt.space.space.Dimension

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

Base class for search space dimensions.

Attributes
bounds
name
prior
size
transformed_bounds
transformed_size

Methods

inverse_transform(self, Xt)

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

rvs(self[, n_samples, random_state])

Draw random samples.

transform(self, X)

Transform samples form the original space to a warped space.

__init__(self, /, *args, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

inverse_transform(self, Xt)[source][source]

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

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

Draw random samples.

Parameters
n_samplesint 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.

transform(self, X)[source][source]

Transform samples form the original space to a warped space.