deephyper.skopt.optimizer.acq_optimizer.pymoo_mixedga.Choice

deephyper.skopt.optimizer.acq_optimizer.pymoo_mixedga.Choice#

class deephyper.skopt.optimizer.acq_optimizer.pymoo_mixedga.Choice(value: object | None = None, options: ArrayLike | None = None, all: ArrayLike | None = None, **kwargs: Any)[source]#

Bases: Variable

Class for the representation of a discrete, subset decision variable.

Methods

get

Get the value of a decision variable.

sample

set

Set the value of a decision variable.

get(**kwargs: Any) object#

Get the value of a decision variable.

Parameters:

kwargs (Any) – Additional keyword arguments.

Returns:

out – The value of the decision variable.

Return type:

object

set(value: object) None#

Set the value of a decision variable.

Parameters:

value (object) – Value to assign to the decision variable.

vtype#

alias of object