public class ProbabilityDistribution extends Classification implements HasProbability
Classification.Type| Constructor and Description |
|---|
ProbabilityDistribution() |
ProbabilityDistribution(Map<String,Double> probabilities) |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getCategoryValues()
Gets the set of known categories.
|
Double |
getProbability(String value)
Gets the probability of the specified category.
|
void |
normalizeValues() |
computeResult, createOrdering, entryKeys, entrySet, entryValues, get, getResult, getType, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, isEmpty, keySet, normalize, normalizeSoftMax, put, setResult, sum, sumValues, toString, toStringHelperpublic Set<String> getCategoryValues()
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.
getCategoryValues in interface CategoricalResultFeaturepublic Double getProbability(String value)
HasProbabilityGets the probability of the specified category.
getProbability in interface HasProbabilityCategoricalResultFeature.getCategoryValues()public void normalizeValues()
normalizeValues in class ClassificationCopyright © 2017. All Rights Reserved.