public class ClusterAffinityDistribution extends EntityClassification<org.dmg.pmml.Cluster> implements HasEntityIdRanking, HasDisplayValue, HasAffinityRanking, HasEntityAffinity
Classification.Type| Modifier | Constructor and Description |
|---|---|
protected |
ClusterAffinityDistribution(Classification.Type type,
com.google.common.collect.BiMap<String,org.dmg.pmml.Cluster> entityRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Double |
getAffinity(String value)
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.
|
String |
getDisplayValue() |
Double |
getEntityAffinity()
Gets the affinity towards the winning entity.
|
List<String> |
getEntityIdRanking() |
getEntity, getEntityId, getEntityRegistry, toStringHelperentryKeys, entryValues, getResult, getType, normalize, normalizeSoftMax, sum, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityIdprotected ClusterAffinityDistribution(Classification.Type type, com.google.common.collect.BiMap<String,org.dmg.pmml.Cluster> entityRegistry)
public 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 List<String> getEntityIdRanking()
getEntityIdRanking in interface HasEntityIdRankingpublic 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 List<Double> getAffinityRanking()
HasAffinityRankinggetAffinityRanking in interface HasAffinityRankingpublic Double getEntityAffinity()
HasEntityAffinitygetEntityAffinity in interface HasEntityAffinityCopyright © 2015. All Rights Reserved.