Interface HpOptimizer
- All Known Implementing Classes:
BaseHpOptimizer
,HpORandom
public interface HpOptimizer
An optimizer for
Hyperparameter
s.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetBest()
Returns the best hyperparameters and loss.float
Returns the recorded loss.Returns the next hyperparameters to test.void
Updates the optimizer with the results of a hyperparameter test.
-
Method Details
-
nextConfig
HpSet nextConfig()Returns the next hyperparameters to test.- Returns:
- the hyperparameters to test
-
update
Updates the optimizer with the results of a hyperparameter test.- Parameters:
config
- the tested hyperparametersloss
- the validation loss from training with those hyperparameters
-
getLoss
Returns the recorded loss.- Parameters:
config
- the hyperparameters that were trained with- Returns:
- the loss
- Throws:
NoSuchElementException
- if the hyperparameters were not trained with before
-
getBest
Returns the best hyperparameters and loss.- Returns:
- the best hyperparameters and loss
-