Documentation of 'jsat.parameters.IntParameter' Java class
IntParameter
jsat.parameters

Class IntParameter

  • All Implemented Interfaces:
    java.io.Serializable


    public abstract class IntParameter
    extends Parameter
    An integer parameter that may be altered.
    See Also:
    Serialized Form
    • Constructor Detail

      • IntParameter

        public IntParameter()
    • Method Detail

      • getValue

        public abstract int getValue()
        Returns the current value for the parameter.
        Returns:
        the value for this parameter.
      • setValue

        public abstract boolean setValue(int val)
        Sets the value for this parameter.
        Returns:
        true if the value was set, false if the value was invalid, and thus ignored.
      • getGuess

        public Distribution getGuess(DataSet data)
        This method allows one to obtain a distribution that represents a reasonable "guess" at the range of values that would work for this parameter. If the DataSet is an instance of ClassificationDataSet or RegressionDataSet, the method may choose to assume that the value is being guessed for the specified task and change its behavior

        Providing a getGuess is not required, and returns null if guessing is not supported.
        Parameters:
        data - the data with which we want a reasonable guess for this parameter
        Returns:
        a distribution that represents a reasonable guess of a good value for this parameter given the input data
      • getValueString

        public java.lang.String getValueString()
        Description copied from class: Parameter
        Returns a string indicating the value currently held by the Parameter
        Specified by:
        getValueString in class Parameter
        Returns:
        a string representation of the parameter's value

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.