Class HpORandom
java.lang.Object
ai.djl.training.hyperparameter.optimizer.BaseHpOptimizer
ai.djl.training.hyperparameter.optimizer.HpORandom
- All Implemented Interfaces:
HpOptimizer
A simple
HpOptimizer
that tries random hyperparameter choices within the range.-
Field Summary
Fields inherited from class ai.djl.training.hyperparameter.optimizer.BaseHpOptimizer
hyperParams, results
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ai.djl.training.hyperparameter.optimizer.BaseHpOptimizer
getBest, getLoss, update
-
Constructor Details
-
HpORandom
Constructs a newHpORandom
.- Parameters:
hyperParams
- the hyperparameters to test with
-
-
Method Details
-
nextConfig
Returns the next hyperparameters to test.- Returns:
- the hyperparameters to test
-