public class MiningModelEvaluator extends ModelEvaluator<org.dmg.pmml.MiningModel> implements HasEntityRegistry<org.dmg.pmml.Segment>
ACTIVE_TYPES, GROUP_TYPES, ORDER_TYPES, TARGET_TYPESDEFAULT_TARGET| Constructor and Description |
|---|
MiningModelEvaluator(org.dmg.pmml.PMML pmml) |
MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.MiningModel miningModel) |
| Modifier and Type | Method and Description |
|---|---|
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.Segment> |
getEntityRegistry() |
ModelEvaluatorFactory |
getEvaluatorFactory() |
String |
getSummary()
Gets a short description of the
Model. |
void |
setEvaluatorFactory(ModelEvaluatorFactory evaluatorFactory) |
getDataField, getDefineFunction, getDerivedField, getLocalDerivedField, getMiningField, getMiningFields, getOutputField, getOutputFields, getTarget, getTargetField, getTargetFields, getValue, getValue, prepare, verifygetActiveFields, getGroupFields, getMiningFunction, getModel, getOrderFieldsgetPMMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetActiveFields, getGroupFields, getMiningFunction, getOrderFieldspublic MiningModelEvaluator(org.dmg.pmml.PMML pmml)
public MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.MiningModel miningModel)
public String getSummary()
Consumer
Gets a short description of the Model.
getSummary in interface ConsumergetSummary in class ModelManager<org.dmg.pmml.MiningModel>public com.google.common.collect.BiMap<String,org.dmg.pmml.Segment> getEntityRegistry()
getEntityRegistry in interface HasEntityRegistry<org.dmg.pmml.Segment>Entity identifiers and Entity instances.protected org.dmg.pmml.DataField getDataField()
getDataField in class ModelEvaluator<org.dmg.pmml.MiningModel>DataField describing the default target field.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.MiningModel>arguments - Map of active 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.MiningModel>public Map<org.dmg.pmml.FieldName,?> evaluate(MiningModelEvaluationContext context)
public ModelEvaluatorFactory getEvaluatorFactory()
public void setEvaluatorFactory(ModelEvaluatorFactory evaluatorFactory)
Copyright © 2016. All Rights Reserved.