public class TargetMetaInfo extends FieldMetaInfo implements Serializable
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value
Modifier and Type | Method and Description |
---|---|
double |
applyMinMaxRescaleCast(double prediction)
Apply min and max, rescaleFactor, rescaleConstant and castInteger - in
that order (where defined).
|
double |
getDefaultValue()
Get the default value (numeric target)
|
Attribute |
getFieldAsAttribute()
Return this field as an Attribute.
|
double |
getPriorProbability(String value)
Get the prior probability for the supplied value.
|
ArrayList<String> |
getValues()
Get the values (discrete case only) for this Target.
|
getFieldName, getOptype
public double getPriorProbability(String value) throws Exception
value
- the value to get the probability forException
- if there are no TargetValues defined or
if the supplied value is not in the list of TargetValuespublic double getDefaultValue() throws Exception
Exception
- if there is no TargetValue definedpublic ArrayList<String> getValues()
public double applyMinMaxRescaleCast(double prediction) throws Exception
prediction
- the prediction to apply these modification toException
- if this target is not a continuous onepublic Attribute getFieldAsAttribute()
getFieldAsAttribute
in class FieldMetaInfo
Copyright © 2020 University of Waikato, Hamilton, NZ. All rights reserved.