astromodule.hp.HyperParameterSet.get#

HyperParameterSet.get(name: str, trial: FrozenTrial = None, default: Any = None, regex: bool = False) Any[source]#

Get the value of a hyperparameter identified by its name. For hyperparameters different than ConstantHyperParameter, this method will use optuna’s seggest api

Parameters:
name: str

The hyperparamer name

trial: optuna.trial.FrozenTrial

The optuan trial instance

default: Any

Default value returned if the specified hyperparameter name wasn’t found

regexbool

When interpret name parameter as a regex and get all matches as a dict

Returns:
Any

The hyperparameter value