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>
AHyperparameter
with a known value instead of a range of possible values.HpVal
s andHpSet
s ofHpVal
s 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 T
random()
Returns a random value for the hyperparameter for a range of a fixed value if it is aHpVal
.java.lang.String
toString()
-
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:
random
in 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:
toString
in classjava.lang.Object
-
-