public class JavaModelEvaluator extends ModelEvaluator<JavaModel>
DEFAULT_TARGET_NAME| Constructor and Description |
|---|
JavaModelEvaluator(org.dmg.pmml.PMML pmml) |
JavaModelEvaluator(org.dmg.pmml.PMML pmml,
JavaModel javaModel) |
| Modifier and Type | Method and Description |
|---|---|
protected ValueFactory<?> |
ensureValueFactory() |
Map<org.dmg.pmml.FieldName,?> |
evaluate(JavaModelEvaluationContext context) |
Map<org.dmg.pmml.FieldName,?> |
evaluate(Map<org.dmg.pmml.FieldName,?> arguments)
Evaluates the model with the specified arguments.
|
Map<org.dmg.pmml.FieldName,?> |
evaluate(ModelEvaluationContext context) |
String |
getSummary()
Gets a short description of the
Model. |
configure, createInputFields, createInputFields, createMiningSchemaException, createOutputFields, createTargetFields, ensureScorableModel, getActiveFields, getConfiguration, getDataField, getDataField, getDefineFunction, getDerivedField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getPMML, getTarget, getTargetField, getTargetFieldName, getTargetFields, getValue, getValue, getValueFactory, isPrimitive, resolveDerivedField, resolveField, verifypublic JavaModelEvaluator(org.dmg.pmml.PMML pmml)
public JavaModelEvaluator(org.dmg.pmml.PMML pmml,
JavaModel javaModel)
public String getSummary()
Evaluator
Gets a short description of the Model.
public Map<org.dmg.pmml.FieldName,?> evaluate(Map<org.dmg.pmml.FieldName,?> arguments)
EvaluatorEvaluates the model with the specified arguments.
evaluate in interface Evaluatorevaluate in class ModelEvaluator<JavaModel>arguments - Map of input field values.target field and output field values.
A target field could be mapped to a complex value or a simple value.
An output field is always mapped to a simple value.
Complex values are represented as instances of Computable that return simple values.
Simple values are represented using the Java equivalents of PMML data types (eg. String, Integer, Float, Double etc.).
A missing value is represented by null.Computablepublic Map<org.dmg.pmml.FieldName,?> evaluate(ModelEvaluationContext context)
evaluate in class ModelEvaluator<JavaModel>public Map<org.dmg.pmml.FieldName,?> evaluate(JavaModelEvaluationContext context)
protected ValueFactory<?> ensureValueFactory()
ensureValueFactory in class ModelEvaluator<JavaModel>Copyright © 2018. All rights reserved.