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(Configuration configuration)
Configures the runtime behaviour of this model evaluator.
|
ModelEvaluationContext |
createEvaluationContext() |
protected List<OutputField> |
createOutputFields() |
protected <V extends Number> |
evaluateAssociationRules(ValueFactory<V> valueFactory,
EvaluationContext context) |
protected <V extends Number> |
evaluateClassification(ValueFactory<V> valueFactory,
EvaluationContext context) |
protected <V extends Number> |
evaluateClustering(ValueFactory<V> valueFactory,
EvaluationContext context) |
Map<org.dmg.pmml.FieldName,?> |
evaluateInternal(ModelEvaluationContext context) |
protected <V extends Number> |
evaluateMixed(ValueFactory<V> valueFactory,
EvaluationContext context) |
protected <V extends Number> |
evaluateRegression(ValueFactory<V> valueFactory,
EvaluationContext 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 |
getTargetName() |
boolean |
isPure()
Indicates if this model evaluator represents a pure function.
|
assessParentCompatibility, assessPurity, collectResultFeatures, createClassification, createInputFields, createInputFields, createMiningSchemaException, createTargetFields, ensureConfiguration, ensureModelEvaluatorFactory, ensureOutputFilter, ensureValueFactory, ensureValueFactoryFactory, evaluate, evaluateSequences, evaluateTimeSeries, getActiveFields, getConfiguration, getDataField, getDefineFunction, getDerivedField, getInputFields, getInputMapper, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getPMML, getResultFeatures, getResultMapper, getTarget, getTargetField, getTargetFields, getValue, getValue, hasResultFeature, isParentCompatible, processArguments, processResults, resolveField, verifypublic MiningModelEvaluator(org.dmg.pmml.PMML pmml)
public MiningModelEvaluator(org.dmg.pmml.PMML pmml,
org.dmg.pmml.mining.MiningModel miningModel)
public void configure(Configuration configuration)
ModelEvaluatorConfigures the runtime behaviour of this model evaluator.
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 isPure()
ModelEvaluatorIndicates if this model evaluator represents a pure function.
A pure model evaluator does not tamper with the evaluation context during evaluation.
isPure in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public org.dmg.pmml.FieldName getTargetName()
getTargetName 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 ModelEvaluationContext createEvaluationContext()
createEvaluationContext in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>public Map<org.dmg.pmml.FieldName,?> evaluateInternal(ModelEvaluationContext context)
evaluateInternal in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>protected <V extends Number> Map<org.dmg.pmml.FieldName,?> evaluateRegression(ValueFactory<V> valueFactory, EvaluationContext context)
evaluateRegression in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>protected <V extends Number> Map<org.dmg.pmml.FieldName,?> evaluateClassification(ValueFactory<V> valueFactory, EvaluationContext context)
evaluateClassification in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>protected <V extends Number> Map<org.dmg.pmml.FieldName,?> evaluateClustering(ValueFactory<V> valueFactory, EvaluationContext context)
evaluateClustering in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>protected <V extends Number> Map<org.dmg.pmml.FieldName,?> evaluateAssociationRules(ValueFactory<V> valueFactory, EvaluationContext context)
evaluateAssociationRules in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>protected <V extends Number> Map<org.dmg.pmml.FieldName,?> evaluateMixed(ValueFactory<V> valueFactory, EvaluationContext context)
evaluateMixed in class ModelEvaluator<org.dmg.pmml.mining.MiningModel>Copyright © 2019. All rights reserved.