astromodule.hp.ConstantHyperParameter.suggest#
- ConstantHyperParameter.suggest(trial: FrozenTrial = None) Any [source]#
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. The training function of the model should call this method to obtain the hyperparmeter value.- Parameters:
- trial: optuna.trial.FrozenTrial, optional
An instance of the
optuna
trial, by default none