Class BaseHpOptimizer
java.lang.Object
ai.djl.training.hyperparameter.optimizer.BaseHpOptimizer
- All Implemented Interfaces:
- HpOptimizer
- Direct Known Subclasses:
- HpORandom
A base containing shared implementations for 
HpOptimizers.- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ai.djl.training.hyperparameter.optimizer.HpOptimizernextConfig
- 
Field Details- 
hyperParams
- 
results
 
- 
- 
Constructor Details- 
BaseHpOptimizerConstructs aBaseHpOptimizer.- Parameters:
- hyperParams- the set of hyperparameters
 
 
- 
- 
Method Details- 
updateUpdates the optimizer with the results of a hyperparameter test.- Specified by:
- updatein interface- HpOptimizer
- Parameters:
- config- the tested hyperparameters
- loss- the validation loss from training with those hyperparameters
 
- 
getLossReturns the recorded loss.- Specified by:
- getLossin interface- HpOptimizer
- Parameters:
- config- the hyperparameters that were trained with
- Returns:
- the loss
 
- 
getBestReturns the best hyperparameters and loss.- Specified by:
- getBestin interface- HpOptimizer
- Returns:
- the best hyperparameters and loss
 
 
-