public interface HasProbability extends CategoricalResultFeature<java.lang.Object>
A marker interface for classification results that provide a probability distribution.
Probability represents a degree of certainty that the sample belongs to a particular category. Probabilities are required to sum to 1 across all categories. Ideally, the probability of the predicted category should approach 1.0, and the probabilities of all other categories should approach 0.0.
ResultFeature.PROBABILITY| Modifier and Type | Method and Description |
|---|---|
java.lang.Double |
getProbability(java.lang.Object category)
Gets the probability of the specified category.
|
Report |
getProbabilityReport(java.lang.Object category) |
getCategoriesjava.lang.Double getProbability(java.lang.Object category)
Gets the probability of the specified category.
CategoricalResultFeature.getCategories()Report getProbabilityReport(java.lang.Object category)
CategoricalResultFeature.getCategories()Copyright © 2024. All Rights Reserved.