Package org.jpmml.evaluator
Class ConfidenceDistribution<V extends Number>
- java.lang.Object
-
- org.jpmml.evaluator.AbstractComputable
-
- org.jpmml.evaluator.Classification<Object,V>
-
- org.jpmml.evaluator.ConfidenceDistribution<V>
-
- All Implemented Interfaces:
CategoricalResultFeature<Object>,Computable,HasConfidence,HasPrediction,ResultFeature
public class ConfidenceDistribution<V extends Number> extends Classification<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<Object,V> confidences)
-
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)-
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
-
-
-
-
Method Detail
-
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>
-
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()
-
-