public class AffinityDistribution extends Classification implements HasEntityIdRanking, HasAffinityRanking, HasEntityAffinity
Classification.Type| Constructor and Description |
|---|
AffinityDistribution(Classification.Type type,
java.lang.Object result) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeResult(org.dmg.pmml.DataType dataType) |
java.lang.Double |
getAffinity(java.lang.String id)
Gets the affinity towards the specified category.
|
java.util.List<java.lang.Double> |
getAffinityRanking()
Gets the affinities for known categories.
|
java.util.Set<java.lang.String> |
getCategoryValues()
Gets the set of known categories.
|
java.lang.Double |
getEntityAffinity()
Gets the affinity towards the winning entity.
|
java.lang.String |
getEntityId()
Gets the
Entity identifier. |
java.util.List<java.lang.String> |
getEntityIdRanking() |
static Classification.Type |
validateType(Classification.Type type) |
createOrdering, entryKeys, entrySet, entryValues, get, getResult, getType, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, isEmpty, keySet, normalize, normalizeSoftMax, normalizeValues, put, setResult, sum, sumValues, toString, toStringHelperpublic AffinityDistribution(Classification.Type type, java.lang.Object result)
public void computeResult(org.dmg.pmml.DataType dataType)
computeResult in class Classificationpublic java.util.Set<java.lang.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 java.lang.String getEntityId()
HasEntityId
Gets the Entity identifier.
getEntityId in interface HasEntityIdpublic java.util.List<java.lang.String> getEntityIdRanking()
getEntityIdRanking in interface HasEntityIdRankingpublic java.lang.Double getAffinity(java.lang.String id)
HasAffinityGets the affinity towards the specified category.
getAffinity in interface HasAffinityDouble.POSITIVE_INFINITY for distance measures and 0.0 for similarity measures).CategoricalResultFeature.getCategoryValues()public java.util.List<java.lang.Double> getAffinityRanking()
HasAffinityRankingGets the affinities for known categories.
Affinities are ordered from the most optimal one to the least optimal one.
getAffinityRanking in interface HasAffinityRankingpublic java.lang.Double getEntityAffinity()
HasEntityAffinityGets the affinity towards the winning entity.
getEntityAffinity in interface HasEntityAffinitypublic static Classification.Type validateType(Classification.Type type)
Copyright © 2017. All Rights Reserved.