Package org.jpmml.evaluator.tree
Class NodeScoreDistribution<V extends Number>
- java.lang.Object
-
- org.jpmml.evaluator.AbstractComputable
-
- org.jpmml.evaluator.Classification<Object,V>
-
- org.jpmml.evaluator.tree.NodeScoreDistribution<V>
-
- All Implemented Interfaces:
CategoricalResultFeature<Object>,Computable,HasConfidence,HasEntityId,HasEntityRegistry<org.dmg.pmml.tree.Node>,HasPrediction,HasProbability,ResultFeature,HasDecisionPath
public abstract class NodeScoreDistribution<V extends Number> extends Classification<Object,V> implements HasEntityRegistry<org.dmg.pmml.tree.Node>, HasDecisionPath, HasProbability, HasConfidence
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jpmml.evaluator.Classification
Classification.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<Object>getCategories()Gets the set of known categories.DoublegetConfidence(Object category)Gets the confidence of the specified category.ReportgetConfidenceReport(Object category)StringgetEntityId()Gets theEntity identifier.org.dmg.pmml.tree.NodegetNode()Gets the winning node.DoublegetProbability(Object category)Gets the probability of the specified category.ReportgetProbabilityReport(Object category)-
Methods inherited from class org.jpmml.evaluator.Classification
entryKeys, entryValues, getPrediction, getPredictionReport, getResult, getType, getValue, getValueReport, getValues, getWinner, getWinnerList, put
-
Methods inherited from class org.jpmml.evaluator.AbstractComputable
toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jpmml.evaluator.tree.HasDecisionPath
getDecisionPath
-
Methods inherited from interface org.jpmml.evaluator.HasEntityRegistry
getEntityRegistry
-
-
-
-
Method Detail
-
getEntityId
public String getEntityId()
Description copied from interface:HasEntityIdGets the
Entity identifier.- Specified by:
getEntityIdin interfaceHasEntityId
-
getCategories
public Set<Object> getCategories()
Description copied from interface:CategoricalResultFeatureGets the set of known categories.
The set of known categories either equals the set of all categories, or is a proper subset of it.
- Specified by:
getCategoriesin interfaceCategoricalResultFeature<V extends Number>
-
getProbability
public Double getProbability(Object category)
Description copied from interface:HasProbabilityGets the probability of the specified category.
- Specified by:
getProbabilityin interfaceHasProbability- Returns:
- A probability in the range from 0.0 to 1.0. The probability of an unknown category is 0.0.
- See Also:
CategoricalResultFeature.getCategories()
-
getProbabilityReport
public Report getProbabilityReport(Object category)
- Specified by:
getProbabilityReportin interfaceHasProbability- See Also:
CategoricalResultFeature.getCategories()
-
getConfidence
public Double getConfidence(Object category)
Description copied from interface:HasConfidenceGets the confidence of the specified category.
- Specified by:
getConfidencein interfaceHasConfidence- Returns:
- A confidence that normally lies in the range from 0.0 to 1.0. The confidence of an unknown category is 0.0.
- See Also:
CategoricalResultFeature.getCategories()
-
getConfidenceReport
public Report getConfidenceReport(Object category)
- Specified by:
getConfidenceReportin interfaceHasConfidence- See Also:
CategoricalResultFeature.getCategories()
-
getNode
public org.dmg.pmml.tree.Node getNode()
Description copied from interface:HasDecisionPathGets the winning node.
- Specified by:
getNodein interfaceHasDecisionPath
-
-