|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.pmml.FieldMetaInfo
weka.core.pmml.TargetMetaInfo
public class TargetMetaInfo
Class to encapsulate information about a Target.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class weka.core.pmml.FieldMetaInfo |
|---|
FieldMetaInfo.Interval, FieldMetaInfo.Optype, FieldMetaInfo.Value |
| Method Summary | |
|---|---|
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(java.lang.String value)
Get the prior probability for the supplied value. |
java.util.ArrayList<java.lang.String> |
getValues()
Get the values (discrete case only) for this Target. |
| Methods inherited from class weka.core.pmml.FieldMetaInfo |
|---|
getFieldName, getOptype |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public double getPriorProbability(java.lang.String value)
throws java.lang.Exception
value - the value to get the probability for
java.lang.Exception - if there are no TargetValues defined or
if the supplied value is not in the list of TargetValues
public double getDefaultValue()
throws java.lang.Exception
java.lang.Exception - if there is no TargetValue definedpublic java.util.ArrayList<java.lang.String> getValues()
public double applyMinMaxRescaleCast(double prediction)
throws java.lang.Exception
prediction - the prediction to apply these modification to
java.lang.Exception - if this target is not a continuous onepublic Attribute getFieldAsAttribute()
getFieldAsAttribute in class FieldMetaInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||