Class VoteProbabilityDistribution<V extends Number>
- java.lang.Object
-
- org.jpmml.evaluator.AbstractComputable
-
- org.jpmml.evaluator.Classification<Object,V>
-
- org.jpmml.evaluator.VoteDistribution<V>
-
- org.jpmml.evaluator.support_vector_machine.VoteProbabilityDistribution<V>
-
- All Implemented Interfaces:
CategoricalResultFeature<Object>,Computable,HasPrediction,HasProbability,ResultFeature
public class VoteProbabilityDistribution<V extends Number> extends VoteDistribution<V> implements HasProbability
-
-
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.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
-
-
-
-
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>
-
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()
-
-