jsat.parameters
Class BooleanParameter
- java.lang.Object
-
- jsat.parameters.Parameter
-
- jsat.parameters.BooleanParameter
-
- All Implemented Interfaces:
- java.io.Serializable
public abstract class BooleanParameter extends Parameter
A boolean parameter that may be altered.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class jsat.parameters.Parameter
Parameter.ParameterHolder, Parameter.WarmParameter
-
-
Constructor Summary
Constructors Constructor and Description BooleanParameter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract booleangetValue()Returns the current value for the parameter.java.lang.StringgetValueString()Returns a string indicating the value currently held by the Parameterabstract booleansetValue(boolean val)Sets the value for this parameter.-
Methods inherited from class jsat.parameters.Parameter
equals, getASCIIName, getName, getParamsFromMethods, hashCode, isWarmParameter, preferredLowToHigh, requiresRetrain, toParameterMap, toString
-
-
-
-
Method Detail
-
getValue
public abstract boolean getValue()
Returns the current value for the parameter.- Returns:
- the value for this parameter.
-
setValue
public abstract boolean setValue(boolean val)
Sets the value for this parameter.- Returns:
- true if the value was set, false if the value was invalid, and thus ignored.
-
getValueString
public java.lang.String getValueString()
Description copied from class:ParameterReturns a string indicating the value currently held by the Parameter- Specified by:
getValueStringin classParameter- Returns:
- a string representation of the parameter's value
-
-
DataMelt 3.0 © DataMelt by jWork.ORG