public class HpInt extends Hyperparameter<Integer>
A Hyperparameter for an integer.
  • Constructor Details

    • HpInt

      public HpInt(String name, int lower, int upper)
      Constructs a HpInt.
      Parameters:
      name - the name of the hyperparameter
      lower - the lower bound (inclusive)
      upper - the upper bound (exclusive)
  • Method Details

    • random

      public Integer random()
      Returns a random value for the hyperparameter for a range of a fixed value if it is a HpVal.
      Specified by:
      random in class Hyperparameter<Integer>
      Returns:
      a random value for the hyperparameter for a range of a fixed value if it is a HpVal
    • toString

      public String toString()
      Overrides:
      toString in class Object