deephyper.problem.ForbiddenEqualsClause#

class deephyper.problem.ForbiddenEqualsClause#

Bases: ConfigSpace.forbidden.SingleValueForbiddenClause

A ForbiddenEqualsClause

It forbids a value from the value range of a hyperparameter to be equal to value.

Forbids the value 2 for the hyperparameter a

>>> from ConfigSpace import ConfigurationSpace, ForbiddenEqualsClause
>>>
>>> cs = ConfigurationSpace({"a": [1, 2, 3]})
>>> forbidden_clause_a = ForbiddenEqualsClause(cs["a"], 2)
>>> cs.add_forbidden_clause(forbidden_clause_a)
Forbidden: a == 2
Parameters
  • hyperparameter (Hyperparameters) – Methods on which a restriction will be made

  • value (Any) – forbidden value

Methods

get_descendant_literal_clauses

is_forbidden

is_forbidden_vector

set_vector_idx

Attributes

hyperparameter

value

vector_id

vector_value