deephyper.problem.Constant

deephyper.problem.Constant

class deephyper.problem.Constant

Bases: ConfigSpace.hyperparameters.Hyperparameter

Methods

compare_vector

get_neighbors

get_num_neighbors

has_neighbors

is_legal

is_legal_vector

Check whether the given value is a legal value for the vector representation of this hyperparameter.

rvs

scipy compatibility wrapper for _sample, allowing the hyperparameter to be used in sklearn API hyperparameter searchers, eg.

sample

Attributes

default_value

meta

name

normalized_default_value

value

Check whether the given value is a legal value for the vector representation of this hyperparameter.

Parameters

value – the vector value to check

Returns

True if the given value is a legal vector value, otherwise False

Return type

bool

rvs()

scipy compatibility wrapper for _sample, allowing the hyperparameter to be used in sklearn API hyperparameter searchers, eg. GridSearchCV.