Package org.jpmml.evaluator.mining
Class MiningModelEvaluator
- java.lang.Object
-
- org.jpmml.evaluator.PMMLManager
-
- org.jpmml.evaluator.ModelManager<M>
-
- org.jpmml.evaluator.ModelEvaluator<org.dmg.pmml.mining.MiningModel>
-
- org.jpmml.evaluator.mining.MiningModelEvaluator
-
- All Implemented Interfaces:
Serializable,Evaluator,HasEntityRegistry<org.dmg.pmml.mining.Segment>,HasInputFields,HasModel<org.dmg.pmml.mining.MiningModel>,HasPMML,HasResultFields
public class MiningModelEvaluator extends ModelEvaluator<org.dmg.pmml.mining.MiningModel> implements HasEntityRegistry<org.dmg.pmml.mining.Segment>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jpmml.evaluator.Evaluator
DEFAULT_TARGET_NAME
-
-
Constructor Summary
Constructors Constructor Description MiningModelEvaluator(org.dmg.pmml.PMML pmml)MiningModelEvaluator(org.dmg.pmml.PMML pmml, org.dmg.pmml.mining.MiningModel miningModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)Configures the runtime behaviour of this model evaluator.ModelEvaluationContextcreateEvaluationContext()SegmentationResultevaluateInternal(ModelEvaluationContext context)DefaultDataFieldgetDefaultDataField()com.google.common.collect.BiMap<String,org.dmg.pmml.mining.Segment>getEntityRegistry()StringgetSummary()Gets a short description of theModel.StringgetTargetName()booleanisPure()Indicates if this model evaluator represents a pure function.-
Methods inherited from class org.jpmml.evaluator.ModelEvaluator
evaluate, getConfiguration, isParentCompatible, verify
-
Methods inherited from class org.jpmml.evaluator.ModelManager
addResultFeatures, getActiveFields, getDataField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getResidualFields, getSupplementaryFields, getTarget, getTargetField, getTargetFields, hasResultFeature, setDefaultDataField
-
Methods inherited from class org.jpmml.evaluator.PMMLManager
getDefineFunction, getDerivedField, getPMML
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpmml.evaluator.Evaluator
getMiningFunction
-
Methods inherited from interface org.jpmml.evaluator.HasInputFields
getActiveFields, getInputFields, getResidualFields, getSupplementaryFields
-
Methods inherited from interface org.jpmml.evaluator.HasResultFields
getOutputFields, getTargetFields
-
-
-
-
Method Detail
-
configure
public void configure(Configuration configuration)
Description copied from class: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.
- Overrides:
configurein classModelEvaluator<org.dmg.pmml.mining.MiningModel>
-
getSummary
public String getSummary()
Description copied from interface:EvaluatorGets a short description of the
Model.- Specified by:
getSummaryin interfaceEvaluator
-
getDefaultDataField
public DefaultDataField getDefaultDataField()
- Overrides:
getDefaultDataFieldin classModelManager<org.dmg.pmml.mining.MiningModel>- Returns:
- A synthetic
DataFieldelement describing the default target field.
-
isPure
public boolean isPure()
Description copied from class:ModelEvaluatorIndicates if this model evaluator represents a pure function.
A pure model evaluator does not tamper with the evaluation context during evaluation.
- Overrides:
isPurein classModelEvaluator<org.dmg.pmml.mining.MiningModel>
-
getTargetName
public String getTargetName()
- Overrides:
getTargetNamein classModelManager<org.dmg.pmml.mining.MiningModel>
-
getEntityRegistry
public com.google.common.collect.BiMap<String,org.dmg.pmml.mining.Segment> getEntityRegistry()
- Specified by:
getEntityRegistryin interfaceHasEntityRegistry<org.dmg.pmml.mining.Segment>- Returns:
- A bidirectional map between
Entity identifiersandEntity instances.
-
createEvaluationContext
public ModelEvaluationContext createEvaluationContext()
- Overrides:
createEvaluationContextin classModelEvaluator<org.dmg.pmml.mining.MiningModel>
-
evaluateInternal
public SegmentationResult evaluateInternal(ModelEvaluationContext context)
- Overrides:
evaluateInternalin classModelEvaluator<org.dmg.pmml.mining.MiningModel>
-
-