Class HpInt
- java.lang.Object
-
- ai.djl.training.hyperparameter.param.Hyperparameter<java.lang.Integer>
-
- ai.djl.training.hyperparameter.param.HpInt
-
public class HpInt extends Hyperparameter<java.lang.Integer>
AHyperparameter
for an integer.
-
-
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 java.lang.Integer
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
-
-
-
-
Constructor Detail
-
HpInt
public HpInt(java.lang.String name, int lower, int upper)
Constructs aHpInt
.- Parameters:
name
- the name of the hyperparameterlower
- the lower bound (inclusive)upper
- the upper bound (exclusive)
-
-
Method Detail
-
random
public java.lang.Integer random()
Returns a random value for the hyperparameter for a range of a fixed value if it is aHpVal
.- Specified by:
random
in classHyperparameter<java.lang.Integer>
- 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
-
-