astromodule.hp.HyperParameterSet#
- class HyperParameterSet[source]#
Represents a set of concretes
HyperParameter
instances and handles the registration and access of hyperparameters.- Parameters:
- *args: HyperParameter
Any
HyperParameter
instance created byHP
factory
See also
Methods
add
(hp)check_missing_hp
(hps)Checks if all elements in a given list is in hyperparameters set
Clear
last_value
property of theHyperParameter
, relevant when training with conditional hyperparametersconcat
(hyperparameters)Parses a sequence of dictionaries that represents the hyperparameters
from_dict
(d)get
(name[, trial, default, regex])Get the value of a hyperparameter identified by its name.
set_trial
(trial)Sets the optuna's trial for all hyperparameter in this set
Returns a dict representation of this hyperparameters set with hp name as dict key and last optuna's suggested value as dict value
- classmethod __new__(*args, **kwargs)#