@Beta public class ClusterClassificationMap extends EntityClassificationMap<org.dmg.pmml.Cluster> implements HasDisplayValue, HasAffinity, HasEntityAffinity
ClassificationMap.TypeAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
ClusterClassificationMap(ClassificationMap.Type type) |
protected |
ClusterClassificationMap(ClassificationMap.Type type,
org.dmg.pmml.Cluster cluster) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAffinity(String value)
Gets the affinity towards the specified category.
|
Set<String> |
getCategoryValues()
Gets the set of known categories.
|
String |
getDisplayValue() |
Double |
getEntityAffinity()
Gets the affinity towards the winning entity.
|
getEntity, getEntityId, getResult, toStringHelpergetType, normalize, normalizeSoftMax, sum, toStringclear, containsValue, get, removeEldestEntryclone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCodeprotected ClusterClassificationMap(ClassificationMap.Type type)
protected ClusterClassificationMap(ClassificationMap.Type type, org.dmg.pmml.Cluster cluster)
public Set<String> getCategoryValues()
CategoricalResultFeaturegetCategoryValues in interface CategoricalResultFeaturepublic String getDisplayValue()
getDisplayValue in interface HasDisplayValuepublic Double getAffinity(String value)
HasAffinitygetAffinity in interface HasAffinityDouble.POSITIVE_INFINITY for distance measures and 0.0 for similarity measures).CategoricalResultFeature.getCategoryValues()public Double getEntityAffinity()
HasEntityAffinitygetEntityAffinity in interface HasEntityAffinityCopyright © 2015. All Rights Reserved.