public class OutputUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<org.dmg.pmml.FieldName,?> |
evaluate(Map<org.dmg.pmml.FieldName,?> predictions,
ModelEvaluationContext context)
Evaluates the
Output element. |
static Double |
getAffinity(Object object,
org.dmg.pmml.OutputField outputField) |
static Double |
getCategoricalResidual(Object object,
FieldValue expectedObject) |
static org.dmg.pmml.DataType |
getDataType(org.dmg.pmml.OutputField outputField,
ModelEvaluator<?> modelEvaluator) |
static Double |
getEntityAffinity(Object object) |
static String |
getReasonCode(Object object,
org.dmg.pmml.OutputField outputField) |
static Object |
getRuleValue(Object object,
org.dmg.pmml.OutputField outputField) |
static Object |
getRuleValue(Object object,
org.dmg.pmml.OutputField outputField,
org.dmg.pmml.RuleFeatureType ruleFeature) |
public static Map<org.dmg.pmml.FieldName,?> evaluate(Map<org.dmg.pmml.FieldName,?> predictions, ModelEvaluationContext context)
Evaluates the Output element.
predictions - A map of target field values.target field values together with output field values.public static org.dmg.pmml.DataType getDataType(org.dmg.pmml.OutputField outputField,
ModelEvaluator<?> modelEvaluator)
TypeAnalysisException - If the data type cannot be determined.public static Double getCategoricalResidual(Object object, FieldValue expectedObject)
public static String getReasonCode(Object object, org.dmg.pmml.OutputField outputField)
public static Object getRuleValue(Object object, org.dmg.pmml.OutputField outputField, org.dmg.pmml.RuleFeatureType ruleFeature)
Copyright © 2015. All Rights Reserved.