public abstract class Parameter extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
Parameter.ParameterHolder
Adding this annotation to a field tells the
getParamsFromMethods(java.lang.Object) method to search this
object recursively for more parameter get/set
pairs.Placing this annotation on a Collection will cause the search to
be done recursively over each item in the collection. |
static interface |
Parameter.WarmParameter
Adding this annotation to a method tells the
getParamsFromMethods(java.lang.Object) method to consider the Parameter object generated for that method a
preferred parameter for warm starting. |
Constructor and Description |
---|
Parameter() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
abstract String |
getASCIIName()
Returns the name of this parameter using only valid ACII characters.
|
String |
getName()
Returns the display name of this parameter.
|
static List<Parameter> |
getParamsFromMethods(Object obj)
Given an object, this method will use reflection to automatically find
getter and setter method pairs, and create Parameter object for each
getter setter pair.
Getters are found by searching for no argument methods that start with "get" or "is". |
abstract String |
getValueString()
Returns a string indicating the value currently held by the Parameter
|
int |
hashCode() |
boolean |
isWarmParameter()
If
true , that means this parameter is the preferred parameter to
be altered when warm starting from a previous version of the same class. |
boolean |
preferredLowToHigh()
|
boolean |
requiresRetrain()
Some variables of a learning method may be adjustable without having to
re-train the whole data set.
|
static Map<String,Parameter> |
toParameterMap(List<Parameter> params)
Creates a map of all possible parameter names to their corresponding object.
|
String |
toString() |
public boolean requiresRetrain()
public boolean isWarmParameter()
true
, that means this parameter is the preferred parameter to
be altered when warm starting from a previous version of the same class.
Being the preferred parameter means that using warms started training on
a sequence of changes to this parameter should be faster than simply
training normally for every combination of values.false
.true
if warm starting on changes in this parameter has a
significant impact on training speed, false
otherwise.public boolean preferredLowToHigh()
isWarmParameter()
is false
, and by default returns false
. true
if warm starting on this parameter should occur from
low values to high values, and false
if it should go from high
values to low.public abstract String getASCIIName()
public String getName()
ASCII name
of the parameter. If one exists, a
name using Unicode characters may be returned instead.public abstract String getValueString()
public static Map<String,Parameter> toParameterMap(List<Parameter> params)
params
- the list of parameters to create a map forRuntimeException
- if two parameters have the same namepublic static List<Parameter> getParamsFromMethods(Object obj)
Kernel Functions
Distance Metrics
Enums
obj
- Copyright © 2017. All rights reserved.