Class HpORandom

java.lang.Object
ai.djl.training.hyperparameter.optimizer.BaseHpOptimizer
ai.djl.training.hyperparameter.optimizer.HpORandom
All Implemented Interfaces:
HpOptimizer

public class HpORandom extends BaseHpOptimizer
A simple HpOptimizer that tries random hyperparameter choices within the range.
  • Constructor Details

    • HpORandom

      public HpORandom(HpSet hyperParams)
      Constructs a new HpORandom.
      Parameters:
      hyperParams - the hyperparameters to test with
  • Method Details

    • nextConfig

      public HpSet nextConfig()
      Returns the next hyperparameters to test.
      Returns:
      the hyperparameters to test