程序包 weka.core.pmml
类 TargetMetaInfo
java.lang.Object
weka.core.pmml.FieldMetaInfo
weka.core.pmml.TargetMetaInfo
- 所有已实现的接口:
Serializable
Class to encapsulate information about a Target.
- 版本:
- $Revision 1.0 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 weka.core.pmml.FieldMetaInfo
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value
-
方法概要
修饰符和类型方法说明double
applyMinMaxRescaleCast
(double prediction) Apply min and max, rescaleFactor, rescaleConstant and castInteger - in that order (where defined).double
Get the default value (numeric target)Return this field as an Attribute.double
getPriorProbability
(String value) Get the prior probability for the supplied value.Get the values (discrete case only) for this Target.从类继承的方法 weka.core.pmml.FieldMetaInfo
getFieldName, getOptype
-
方法详细资料
-
getPriorProbability
Get the prior probability for the supplied value.- 参数:
value
- the value to get the probability for- 返回:
- the probability
- 抛出:
Exception
- if there are no TargetValues defined or if the supplied value is not in the list of TargetValues
-
getDefaultValue
Get the default value (numeric target)- 返回:
- the default value
- 抛出:
Exception
- if there is no TargetValue defined
-
getValues
Get the values (discrete case only) for this Target. Note: the list may be empty if the pmml doesn't specify any values.- 返回:
- the values of this Target
-
applyMinMaxRescaleCast
Apply min and max, rescaleFactor, rescaleConstant and castInteger - in that order (where defined).- 参数:
prediction
- the prediction to apply these modification to- 返回:
- the modified prediction
- 抛出:
Exception
- if this target is not a continuous one
-
getFieldAsAttribute
Return this field as an Attribute.- 指定者:
getFieldAsAttribute
在类中FieldMetaInfo
- 返回:
- an Attribute for this field.
-