public class EntityProbabilityDistribution<E extends org.dmg.pmml.Entity> extends EntityClassification<E> implements HasProbability
Classification.Type| Modifier | Constructor and Description |
|---|---|
protected |
EntityProbabilityDistribution(com.google.common.collect.BiMap<String,E> entityRegistry) |
| 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.
|
getEntity, getEntityId, getEntityRegistry, toStringHelperentryKeys, entryValues, getResult, getType, normalize, normalizeSoftMax, sum, toStringpublic 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()Copyright © 2016. All Rights Reserved.