Package org.jpmml.evaluator
Class ConfidenceDistribution<V extends java.lang.Number>
- java.lang.Object
-
- org.jpmml.evaluator.AbstractComputable
-
- org.jpmml.evaluator.Classification<java.lang.Object,V>
-
- org.jpmml.evaluator.ConfidenceDistribution<V>
-
- All Implemented Interfaces:
CategoricalResultFeature<java.lang.Object>,Computable,HasConfidence,HasPrediction,ResultFeature
public class ConfidenceDistribution<V extends java.lang.Number> extends Classification<java.lang.Object,V> implements HasConfidence
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jpmml.evaluator.Classification
Classification.Type
-
-
Constructor Summary
Constructors Constructor Description ConfidenceDistribution(ValueMap<java.lang.Object,V> confidences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)-
Methods inherited from class org.jpmml.evaluator.Classification
computeResult, createOrdering, entryKeys, entrySet, entryValues, getPrediction, getPredictionReport, getResult, getType, getValue, getValueReport, getValues, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, keySet, put, setResult, toStringHelper
-
Methods inherited from class org.jpmml.evaluator.AbstractComputable
toString
-
-
-
-
Method Detail
-
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>
-
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()
-
-