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 void |
configure(ModelEvaluatorFactory modelEvaluatorFactory) |
protected List<OutputField> |
createOutputFields() |
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(MiningModelEvaluationContext context) |
Map<org.dmg.pmml.FieldName,?> |
evaluate(ModelEvaluationContext context) |
protected org.dmg.pmml.DataField |
getDataField() |
com.google.common.collect.BiMap<String,org.dmg.pmml.mining.Segment> |
getEntityRegistry() |
ModelEvaluatorFactory |
getModelEvaluatorFactory() |
String |
getSummary()
Gets a short description of the
Model. |
org.dmg.pmml.FieldName |
getTargetFieldName() |
createInputFields, createInputFields, createTargetFields, createValueFactory, getActiveFields, getDataField, getDefineFunction, getDerivedField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getPMML, getTarget, getTargetField, getTargetFields, getValue, getValue, getValueFactory, getValueFactoryFactory, resolveDerivedField, resolveField, selectModel, verifypublic MiningModelEvaluator(org.dmg.pmml.PMML pmml)
public MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.mining.MiningModel miningModel)
protected void configure(ModelEvaluatorFactory modelEvaluatorFactory)
configure in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public 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<String,org.dmg.pmml.mining.Segment> getEntityRegistry()
getEntityRegistry in interface HasEntityRegistry<org.dmg.pmml.mining.Segment>Entity identifiers and Entity instances.protected List<OutputField> createOutputFields()
createOutputFields in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>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<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 Map<org.dmg.pmml.FieldName,?> evaluate(ModelEvaluationContext context)
evaluate in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public Map<org.dmg.pmml.FieldName,?> evaluate(MiningModelEvaluationContext context)
public ModelEvaluatorFactory getModelEvaluatorFactory()
Copyright © 2017. All Rights Reserved.