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 by HP factory

Methods

add(hp)

check_missing_hp(hps)

Checks if all elements in a given list is in hyperparameters set

clear_values_dict()

Clear last_value property of the HyperParameter, relevant when training with conditional hyperparameters

concat(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

to_values_dict()

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)#