Class NearestNeighborModelEvaluator
- java.lang.Object
-
- org.jpmml.evaluator.PMMLManager
-
- org.jpmml.evaluator.ModelManager<M>
-
- org.jpmml.evaluator.ModelEvaluator<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>
-
- org.jpmml.evaluator.nearest_neighbor.NearestNeighborModelEvaluator
-
- All Implemented Interfaces:
java.io.Serializable,Evaluator,HasActiveFields,HasInputFields,HasModel<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>,HasPMML,HasResultFields
public class NearestNeighborModelEvaluator extends ModelEvaluator<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.jpmml.evaluator.Evaluator
DEFAULT_TARGET_NAME
-
-
Constructor Summary
Constructors Constructor Description NearestNeighborModelEvaluator(org.dmg.pmml.PMML pmml)NearestNeighborModelEvaluator(org.dmg.pmml.PMML pmml, org.dmg.pmml.nearest_neighbor.NearestNeighborModel nearestNeighborModel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <V extends java.lang.Number>
java.util.Map<java.lang.String,AffinityDistribution<V>>evaluateClassification(ValueFactory<V> valueFactory, EvaluationContext context)protected <V extends java.lang.Number>
java.util.Map<java.lang.String,AffinityDistribution<V>>evaluateClustering(ValueFactory<V> valueFactory, EvaluationContext context)protected <V extends java.lang.Number>
java.util.Map<java.lang.String,AffinityDistribution<V>>evaluateMixed(ValueFactory<V> valueFactory, EvaluationContext context)protected <V extends java.lang.Number>
java.util.Map<java.lang.String,AffinityDistribution<V>>evaluateRegression(ValueFactory<V> valueFactory, EvaluationContext context)DefaultDataFieldgetDefaultDataField()java.lang.StringgetSummary()Gets a short description of theModel.-
Methods inherited from class org.jpmml.evaluator.ModelEvaluator
assessParentCompatibility, assessPurity, configure, createClassification, createEvaluationContext, ensureConfiguration, ensureModelEvaluatorFactory, ensureOutputFilter, ensureValueFactory, ensureValueFactoryFactory, evaluate, evaluateAssociationRules, evaluateInternal, evaluateOutput, 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, createTargetFields, getActiveFields, getDataField, getInputFields, getLocalDerivedField, getMathContext, getMiningField, getMiningFunction, getModel, getOutputField, getOutputFields, getResultFeatures, getTarget, getTargetField, getTargetFields, getTargetName, 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.
-
getDefaultDataField
public DefaultDataField getDefaultDataField()
- Overrides:
getDefaultDataFieldin classModelManager<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>- Returns:
- A synthetic
DataFieldelement describing the default target field.
-
evaluateRegression
protected <V extends java.lang.Number> java.util.Map<java.lang.String,AffinityDistribution<V>> evaluateRegression(ValueFactory<V> valueFactory, EvaluationContext context)
- Overrides:
evaluateRegressionin classModelEvaluator<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>
-
evaluateClassification
protected <V extends java.lang.Number> java.util.Map<java.lang.String,AffinityDistribution<V>> evaluateClassification(ValueFactory<V> valueFactory, EvaluationContext context)
- Overrides:
evaluateClassificationin classModelEvaluator<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>
-
evaluateMixed
protected <V extends java.lang.Number> java.util.Map<java.lang.String,AffinityDistribution<V>> evaluateMixed(ValueFactory<V> valueFactory, EvaluationContext context)
- Overrides:
evaluateMixedin classModelEvaluator<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>
-
evaluateClustering
protected <V extends java.lang.Number> java.util.Map<java.lang.String,AffinityDistribution<V>> evaluateClustering(ValueFactory<V> valueFactory, EvaluationContext context)
- Overrides:
evaluateClusteringin classModelEvaluator<org.dmg.pmml.nearest_neighbor.NearestNeighborModel>
-
-