public class MiningModelEvaluator extends ModelEvaluator<org.dmg.pmml.MiningModel> implements MiningModelConsumer, 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() |
org.dmg.pmml.MultipleModelMethodType |
getMultipleModelMethod()
Gets the type of the
MiningModel. |
org.dmg.pmml.OutputField |
getNestedOutputField(org.dmg.pmml.FieldName name)
Gets the definition of a field from the nested
Consumer instance. |
List<org.dmg.pmml.FieldName> |
getNestedOutputFields()
Gets the output fields of nested
Consumer instances. |
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, getDataField, getGroupFields, getMiningField, getMiningFunction, getOrderFields, getOutputField, getOutputFields, getTarget, getTargetFieldspublic MiningModelEvaluator(org.dmg.pmml.PMML pmml)
public MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.MiningModel miningModel)
public org.dmg.pmml.MultipleModelMethodType getMultipleModelMethod()
MiningModelConsumer
Gets the type of the MiningModel.
The following MiningModel types propagate nested evaluation results to the top level:
MultipleModelMethodType.SELECT_ALLMultipleModelMethodType.SELECT_FIRSTMultipleModelMethodType.MODEL_CHAINgetMultipleModelMethod in interface MiningModelConsumerpublic List<org.dmg.pmml.FieldName> getNestedOutputFields()
MiningModelConsumer
Gets the output fields of nested Consumer instances.
The target fields of nested models are subsets of target fields the top-level mining model. However, the output fields of nested models are disjoint sets from the output fields of the top-level mining model.
getNestedOutputFields in interface MiningModelConsumerpublic org.dmg.pmml.OutputField getNestedOutputField(org.dmg.pmml.FieldName name)
MiningModelConsumer
Gets the definition of a field from the nested Consumer instance.
getNestedOutputField in interface MiningModelConsumerMiningModelConsumer.getNestedOutputFields()public String getSummary()
Consumer
Gets a short description of the Model.
getSummary in interface ConsumergetSummary in class ModelManager<org.dmg.pmml.MiningModel>protected org.dmg.pmml.DataField getDataField()
getDataField in class ModelEvaluator<org.dmg.pmml.MiningModel>DataField describing the default target field.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.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.