@Beta public class InstanceClassificationMap extends ClassificationMap<String> implements HasEntityIdRanking, HasAffinityRanking, HasEntityAffinity
ClassificationMap.TypeAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
InstanceClassificationMap(ClassificationMap.Type type,
Object result) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAffinity(String id)
Gets the affinity towards the specified category.
|
List<Double> |
getAffinityRanking()
Gets the affinities for known categories.
|
Set<String> |
getCategoryValues()
Gets the set of known categories.
|
Double |
getEntityAffinity()
Gets the affinity towards the winning entity.
|
String |
getEntityId() |
List<String> |
getEntityIdRanking() |
Object |
getResult() |
getType, normalize, normalizeSoftMax, sum, toString, toStringHelperclear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodeprotected InstanceClassificationMap(ClassificationMap.Type type, Object result)
public Object getResult()
getResult in interface ComputablegetResult in class ClassificationMap<String>public Set<String> getCategoryValues()
CategoricalResultFeaturegetCategoryValues in interface CategoricalResultFeaturepublic String getEntityId()
getEntityId in interface HasEntityIdpublic List<String> getEntityIdRanking()
getEntityIdRanking in interface HasEntityIdRankingpublic Double getAffinity(String id)
HasAffinitygetAffinity in interface HasAffinityDouble.POSITIVE_INFINITY for distance measures and 0.0 for similarity measures).CategoricalResultFeature.getCategoryValues()public List<Double> getAffinityRanking()
HasAffinityRankinggetAffinityRanking in interface HasAffinityRankingpublic Double getEntityAffinity()
HasEntityAffinitygetEntityAffinity in interface HasEntityAffinityCopyright © 2015. All Rights Reserved.