Package org.jpmml.evaluator.tree
Class NodeScoreDistribution<V extends java.lang.Number>
- java.lang.Object
-
- org.jpmml.evaluator.AbstractComputable
-
- org.jpmml.evaluator.Classification<java.lang.Object,V>
-
- org.jpmml.evaluator.tree.NodeScoreDistribution<V>
-
- All Implemented Interfaces:
CategoricalResultFeature<java.lang.Object>,Computable,HasConfidence,HasEntityId,HasEntityRegistry<org.dmg.pmml.tree.Node>,HasPrediction,HasProbability,ResultFeature,HasDecisionPath
public abstract class NodeScoreDistribution<V extends java.lang.Number> extends Classification<java.lang.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 protected voidcomputeResult(org.dmg.pmml.DataType dataType)java.util.Set<java.lang.Object>getCategories()Gets the set of known categories.java.lang.DoublegetConfidence(java.lang.Object category)Gets the confidence of the specified category.ReportgetConfidenceReport(java.lang.Object category)java.lang.StringgetEntityId()Gets theEntity identifier.org.dmg.pmml.tree.NodegetNode()Gets the winning node.java.lang.DoublegetProbability(java.lang.Object category)Gets the probability of the specified category.ReportgetProbabilityReport(java.lang.Object category)protected org.jpmml.model.ToStringHelpertoStringHelper()-
Methods inherited from class org.jpmml.evaluator.Classification
createOrdering, entryKeys, entrySet, entryValues, getPrediction, getPredictionReport, getResult, getType, getValue, getValueReport, getValues, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, keySet, put, setResult
-
Methods inherited from class org.jpmml.evaluator.AbstractComputable
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
-
computeResult
protected void computeResult(org.dmg.pmml.DataType dataType)
- Overrides:
computeResultin classClassification<java.lang.Object,V extends java.lang.Number>
-
toStringHelper
protected org.jpmml.model.ToStringHelper toStringHelper()
- Overrides:
toStringHelperin classClassification<java.lang.Object,V extends java.lang.Number>
-
getEntityId
public java.lang.String getEntityId()
Description copied from interface:HasEntityIdGets the
Entity identifier.- Specified by:
getEntityIdin interfaceHasEntityId
-
getCategories
public java.util.Set<java.lang.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 java.lang.Number>
-
getProbability
public java.lang.Double getProbability(java.lang.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(java.lang.Object category)
- Specified by:
getProbabilityReportin interfaceHasProbability- See Also:
CategoricalResultFeature.getCategories()
-
getConfidence
public java.lang.Double getConfidence(java.lang.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(java.lang.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
-
-