Class HpSet

    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      HpSet​(java.lang.String name)
      Cosntructs a new empty HpSet.
      HpSet​(java.lang.String name, java.util.List<Hyperparameter<?>> hyperParams)
      Cosntructs a new HpSet.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(Hyperparameter<?> hparam)
      Adds a hyperparameter to the set.
      Hyperparameter<?> getHParam​(java.lang.String name)
      Returns the hyperparameter in the set with the given name.
      HpSet 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

      • HpSet

        public HpSet​(java.lang.String name,
                     java.util.List<Hyperparameter<?>> hyperParams)
        Cosntructs a new HpSet.
        Parameters:
        name - the name of the hyperparameter set
        hyperParams - the included hyperparameters in the set
      • HpSet

        public HpSet​(java.lang.String name)
        Cosntructs a new empty HpSet.
        Parameters:
        name - the name of the hyperparameter set
    • Method Detail

      • add

        public void add​(Hyperparameter<?> hparam)
        Adds a hyperparameter to the set.
        Parameters:
        hparam - the hyperparameter to add
      • getHParam

        public Hyperparameter<?> getHParam​(java.lang.String name)
        Returns the hyperparameter in the set with the given name.
        Parameters:
        name - the name of the hyperparameter to return
        Returns:
        the hyperparameter
      • random

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