public class MiningModelEvaluator extends ModelEvaluator<org.dmg.pmml.mining.MiningModel> implements HasEntityRegistry<org.dmg.pmml.mining.Segment>
DEFAULT_TARGET_NAME| Constructor and Description |
|---|
MiningModelEvaluator(org.dmg.pmml.PMML pmml) |
MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.mining.MiningModel miningModel) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<OutputField> |
createOutputFields() |
java.util.Map<org.dmg.pmml.FieldName,?> |
evaluate(java.util.Map<org.dmg.pmml.FieldName,?> arguments)
Evaluates the model with the specified arguments.
|
java.util.Map<org.dmg.pmml.FieldName,?> |
evaluate(MiningModelEvaluationContext context) |
java.util.Map<org.dmg.pmml.FieldName,?> |
evaluate(ModelEvaluationContext context) |
protected org.dmg.pmml.DataField |
getDataField() |
com.google.common.collect.BiMap<java.lang.String,org.dmg.pmml.mining.Segment> |
getEntityRegistry() |
ModelEvaluatorFactory |
getEvaluatorFactory() |
java.lang.String |
getSummary()
Gets a short description of the
Model. |
org.dmg.pmml.FieldName |
getTargetFieldName() |
void |
setEvaluatorFactory(ModelEvaluatorFactory evaluatorFactory) |
createInputFields, createInputFields, createTargetFields, getActiveFields, getDataField, getDefineFunction, getDerivedField, getInputFields, getLocalDerivedField, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getPMML, getTarget, getTargetField, getTargetFields, getValue, getValue, resolveDerivedField, resolveField, selectModel, verifypublic MiningModelEvaluator(org.dmg.pmml.PMML pmml)
public MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.mining.MiningModel miningModel)
public java.lang.String getSummary()
Evaluator
Gets a short description of the Model.
getSummary in interface Evaluatorprotected org.dmg.pmml.DataField getDataField()
getDataField in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>DataField element describing the default target field.public org.dmg.pmml.FieldName getTargetFieldName()
getTargetFieldName in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public com.google.common.collect.BiMap<java.lang.String,org.dmg.pmml.mining.Segment> getEntityRegistry()
getEntityRegistry in interface HasEntityRegistry<org.dmg.pmml.mining.Segment>Entity identifiers and Entity instances.protected java.util.List<OutputField> createOutputFields()
createOutputFields in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public java.util.Map<org.dmg.pmml.FieldName,?> evaluate(java.util.Map<org.dmg.pmml.FieldName,?> arguments)
EvaluatorEvaluates the model with the specified arguments.
evaluate in interface Evaluatorevaluate in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>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 java.util.Map<org.dmg.pmml.FieldName,?> evaluate(ModelEvaluationContext context)
evaluate in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public java.util.Map<org.dmg.pmml.FieldName,?> evaluate(MiningModelEvaluationContext context)
public ModelEvaluatorFactory getEvaluatorFactory()
public void setEvaluatorFactory(ModelEvaluatorFactory evaluatorFactory)
Copyright © 2017. All Rights Reserved.