Class HpVal<T>
- java.lang.Object
-
- ai.djl.training.hyperparameter.param.Hyperparameter<T>
-
- ai.djl.training.hyperparameter.param.HpVal<T>
-
- Type Parameters:
T- the type of the value
public class HpVal<T> extends Hyperparameter<T>
AHyperparameterwith a known value instead of a range of possible values.HpVals andHpSets ofHpVals are used to represent sampled hyperparameters.
-
-
Field Summary
-
Fields inherited from class ai.djl.training.hyperparameter.param.Hyperparameter
name
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Trandom()Returns a random value for the hyperparameter for a range of a fixed value if it is aHpVal.java.lang.StringtoString()-
Methods inherited from class ai.djl.training.hyperparameter.param.Hyperparameter
getName
-
-
-
-
Method Detail
-
random
public T random()
Returns a random value for the hyperparameter for a range of a fixed value if it is aHpVal.- Specified by:
randomin classHyperparameter<T>- Returns:
- a random value for the hyperparameter for a range of a fixed value if it is a
HpVal
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-