astromodule.hp.CategoricalHyperParameter#

class CategoricalHyperParameter[source]#

Concrete class that represents a hyperparimeter of the categorical type

Parameters:
name: str

The hyperparâmeter identification name, must be unique.

choices: Sequence[Any]

A list-like object of categorical values

Methods

clear_last_value()

Sets last_value attribute to None

from_dict(params)

Creates a concrete instance of hyperparmeter from a dictionary of the python

set_attr(key, value)

set_trial(trial)

suggest([trial])

Used to recover the value of the hyperparmeter as defined by the concrete class.The concrete class can implement a logic based in Auto-ML using the optuna library or predefined values.

to_dict([show_name])

A hyperparmeter can be defined from various attributes.

classmethod __new__(*args, **kwargs)#