public class ProbabilityDistribution<V extends Number> extends Classification<Object,V> implements HasProbability
Classification.Type| Constructor and Description |
|---|
ProbabilityDistribution(ValueMap<Object,V> probabilities) |
| Modifier and Type | Method and Description |
|---|---|
Set<Object> |
getCategories()
Gets the set of known categories.
|
Double |
getProbability(Object category)
Gets the probability of the specified category.
|
Report |
getProbabilityReport(Object category) |
computeResult, createOrdering, entryKeys, entrySet, entryValues, getPrediction, getPredictionReport, getResult, getType, getValue, getValueReport, getValues, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, keySet, put, setResult, toStringHelpertoStringpublic Set<Object> getCategories()
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.
getCategories in interface CategoricalResultFeature<Object>public Double getProbability(Object category)
HasProbabilityGets the probability of the specified category.
getProbability in interface HasProbabilityCategoricalResultFeature.getCategories()public Report getProbabilityReport(Object category)
getProbabilityReport in interface HasProbabilityCategoricalResultFeature.getCategories()Copyright © 2021. All rights reserved.