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 |
|---|---|
void |
configure(ModelEvaluatorFactory modelEvaluatorFactory)
Configures the runtime behaviour of this
Evaluator instance. |
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() |
String |
getSummary()
Gets a short description of the
Model. |
org.dmg.pmml.FieldName |
getTargetFieldName() |
boolean |
isPrimitive() |
createInputFields, createInputFields, createMiningSchemaException, createTargetFields, ensureModelEvaluatorFactory, ensureScorableModel, ensureValueFactory, ensureValueFactoryFactory, getActiveFields, getDataField, getDefineFunction, getDerivedField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getModelEvaluatorFactory, 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)
public void configure(ModelEvaluatorFactory modelEvaluatorFactory)
ModelEvaluator
Configures the runtime behaviour of this Evaluator instance.
Must be called once before the first evaluation. May be called any number of times between subsequent evaluations.
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 boolean isPrimitive()
isPrimitive in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>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)
Copyright © 2018. All rights reserved.