Class HpVal<T>

  • Type Parameters:
    T - the type of the value

    public class HpVal<T>
    extends Hyperparameter<T>
    A Hyperparameter with a known value instead of a range of possible values.

    HpVals and HpSets of HpVals are used to represent sampled hyperparameters.

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      HpVal​(java.lang.String name, T value)
      Cosntructs a new HpVal.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T 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

      • HpVal

        public HpVal​(java.lang.String name,
                     T value)
        Cosntructs a new HpVal.
        Parameters:
        name - the name of the hyperparameter
        value - the fixed value of the hyperparameter
    • Method Detail

      • random

        public T 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<T>
        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