Class HpFloat

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      HpFloat​(java.lang.String name, float lower, float upper, boolean log)
      Constructs a HpFloat.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Float random()
      Returns a random value for the hyperparameter for a range of a fixed value if it is a HpVal.
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HpFloat

        public HpFloat​(java.lang.String name,
                       float lower,
                       float upper,
                       boolean log)
        Constructs a HpFloat.
        Parameters:
        name - the name of the hyperparameter
        lower - the lower bound (inclusive)
        upper - the upper bound (exclusive)
        log - whether to use log space. This is useful if your bounds cover different orders of magnitude (e.g. 1E-5 to 1E-2) instead of same magnitude (e.g. 2 to 5).
    • Method Detail

      • random

        public java.lang.Float 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<java.lang.Float>
        Returns:
        a random value for the hyperparameter for a range of a fixed value if it is a HpVal
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object