Package org.jpmml.evaluator.association
Class AssociationModelEvaluator
- java.lang.Object
-
- org.jpmml.evaluator.PMMLManager
-
- org.jpmml.evaluator.ModelManager<M>
-
- org.jpmml.evaluator.ModelEvaluator<org.dmg.pmml.association.AssociationModel>
-
- org.jpmml.evaluator.association.AssociationModelEvaluator
-
- All Implemented Interfaces:
java.io.Serializable,Evaluator,HasActiveFields,HasEntityRegistry<org.dmg.pmml.association.AssociationRule>,HasGroupFields,HasInputFields,HasModel<org.dmg.pmml.association.AssociationModel>,HasPMML,HasResultFields
public class AssociationModelEvaluator extends ModelEvaluator<org.dmg.pmml.association.AssociationModel> implements HasGroupFields, HasEntityRegistry<org.dmg.pmml.association.AssociationRule>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jpmml.evaluator.Evaluator
DEFAULT_TARGET_NAME
-
-
Constructor Summary
Constructors Constructor Description AssociationModelEvaluator(org.dmg.pmml.PMML pmml)AssociationModelEvaluator(org.dmg.pmml.PMML pmml, org.dmg.pmml.association.AssociationModel associationModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<TargetField>createTargetFields()protected <V extends java.lang.Number>
java.util.Map<java.lang.String,Association>evaluateAssociationRules(ValueFactory<V> valueFactory, EvaluationContext context)com.google.common.collect.BiMap<java.lang.String,org.dmg.pmml.association.AssociationRule>getEntityRegistry()java.util.List<InputField>getGroupFields()Gets the group fields of aModelfrom itsMiningSchema.java.lang.StringgetSummary()Gets a short description of theModel.org.dmg.pmml.TargetgetTarget(java.lang.String name)java.lang.StringgetTargetName()-
Methods inherited from class org.jpmml.evaluator.ModelEvaluator
assessParentCompatibility, assessPurity, configure, createClassification, createEvaluationContext, ensureConfiguration, ensureModelEvaluatorFactory, ensureOutputFilter, ensureValueFactory, ensureValueFactoryFactory, evaluate, evaluateClassification, evaluateClustering, evaluateInternal, evaluateMixed, evaluateOutput, evaluateRegression, evaluateSequences, evaluateTimeSeries, filterInputFields, filterOutputFields, filterTargetFields, getConfiguration, getInputMapper, getNumberOfVisibleFields, getResultMapper, isParentCompatible, isPure, processArguments, processResults, verify
-
Methods inherited from class org.jpmml.evaluator.ModelManager
addResultFeatures, collectResultFeatures, collectSegmentResultFeatures, createInputFields, createInputFields, createMiningSchemaException, createOutputFields, getActiveFields, getDataField, getDefaultDataField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getResultFeatures, getTargetField, getTargetFields, getVisibleFields, hasLocalDerivedFields, hasOutputFields, hasResultFeature, resetInputFields, resetResultFields, resolveField, setDefaultDataField
-
Methods inherited from class org.jpmml.evaluator.PMMLManager
getDefineFunction, getDerivedField, getPMML, toImmutableListMap, toImmutableMapMap, toImmutableSetMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jpmml.evaluator.Evaluator
getMiningFunction
-
Methods inherited from interface org.jpmml.evaluator.HasActiveFields
getActiveFields
-
Methods inherited from interface org.jpmml.evaluator.HasInputFields
getInputFields
-
Methods inherited from interface org.jpmml.evaluator.HasResultFields
getOutputFields, getTargetFields
-
-
-
-
Method Detail
-
getSummary
public java.lang.String getSummary()
Description copied from interface:EvaluatorGets a short description of the
Model.- Specified by:
getSummaryin interfaceEvaluator
-
getGroupFields
public java.util.List<InputField> getGroupFields()
Description copied from interface:HasGroupFieldsGets the group fields of a
Modelfrom itsMiningSchema.This field set is relevant for
association rulesmodel type only.- Specified by:
getGroupFieldsin interfaceHasGroupFields
-
getTarget
public org.dmg.pmml.Target getTarget(java.lang.String name)
- Overrides:
getTargetin classModelManager<org.dmg.pmml.association.AssociationModel>- Returns:
nullAlways.
-
getTargetName
public java.lang.String getTargetName()
- Overrides:
getTargetNamein classModelManager<org.dmg.pmml.association.AssociationModel>
-
getEntityRegistry
public com.google.common.collect.BiMap<java.lang.String,org.dmg.pmml.association.AssociationRule> getEntityRegistry()
- Specified by:
getEntityRegistryin interfaceHasEntityRegistry<org.dmg.pmml.association.AssociationRule>- Returns:
- A bidirectional map between
Entity identifiersandEntity instances.
-
createTargetFields
protected java.util.List<TargetField> createTargetFields()
- Overrides:
createTargetFieldsin classModelManager<org.dmg.pmml.association.AssociationModel>
-
evaluateAssociationRules
protected <V extends java.lang.Number> java.util.Map<java.lang.String,Association> evaluateAssociationRules(ValueFactory<V> valueFactory, EvaluationContext context)
- Overrides:
evaluateAssociationRulesin classModelEvaluator<org.dmg.pmml.association.AssociationModel>
-
-