Class HpSet
java.lang.Object
ai.djl.training.hyperparameter.param.Hyperparameter<HpSet>
ai.djl.training.hyperparameter.param.HpSet
A nestable set of
Hyperparameter
s.-
Field Summary
Fields inherited from class ai.djl.training.hyperparameter.param.Hyperparameter
name
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Hyperparameter<?> hparam) Adds a hyperparameter to the set.Returns the hyperparameter in the set with the given name.random()
Returns a random value for the hyperparameter for a range of a fixed value if it is aHpVal
.toString()
Methods inherited from class ai.djl.training.hyperparameter.param.Hyperparameter
getName
-
Constructor Details
-
Method Details
-
add
Adds a hyperparameter to the set.- Parameters:
hparam
- the hyperparameter to add
-
getHParam
Returns the hyperparameter in the set with the given name.- Parameters:
name
- the name of the hyperparameter to return- Returns:
- the hyperparameter
-
random
Returns a random value for the hyperparameter for a range of a fixed value if it is aHpVal
.- Specified by:
random
in classHyperparameter<HpSet>
- Returns:
- a random value for the hyperparameter for a range of a fixed value if it is a
HpVal
-
toString
-