public abstract class MetricParameter extends Parameter
DistanceMetric
used by the current algorithm.Parameter.ParameterHolder, Parameter.WarmParameter
Constructor and Description |
---|
MetricParameter() |
Modifier and Type | Method and Description |
---|---|
String |
getASCIIName()
Returns the name of this parameter using only valid ACII characters.
|
abstract DistanceMetric |
getMetric()
Returns the distance metric that was used for this learner
|
String |
getValueString()
Returns a string indicating the value currently held by the Parameter
|
abstract boolean |
setMetric(DistanceMetric val)
Sets the distance metric that should be sued
|
equals, getName, getParamsFromMethods, hashCode, isWarmParameter, preferredLowToHigh, requiresRetrain, toParameterMap, toString
public abstract boolean setMetric(DistanceMetric val)
val
- the distance metric to usepublic abstract DistanceMetric getMetric()
public String getASCIIName()
Parameter
getASCIIName
in class Parameter
public String getValueString()
Parameter
getValueString
in class Parameter
Copyright © 2017. All rights reserved.