public abstract class ClusterAffinityDistribution<V extends Number> extends EntityClassification<org.dmg.pmml.clustering.Cluster,String,V> implements HasEntityIdRanking, HasDisplayValue, HasAffinityRanking, HasEntityAffinity
Classification.Type| Modifier and Type | Method and Description |
|---|---|
protected void |
computeResult(org.dmg.pmml.DataType dataType) |
Double |
getAffinity(String category)
Gets the affinity towards the specified category.
|
List<Double> |
getAffinityRanking()
Gets the affinities for known categories.
|
Report |
getAffinityReport(String category) |
Set<String> |
getCategories()
Gets the set of known categories.
|
String |
getDisplayValue() |
Double |
getEntityAffinity()
Gets the affinity towards the winning entity.
|
List<String> |
getEntityIdRanking() |
void |
put(org.dmg.pmml.clustering.Cluster entity,
Value<V> value) |
getEntity, getEntityId, put, setEntity, toStringHelpercreateOrdering, entryKeys, entrySet, entryValues, getPrediction, getPredictionReport, getResult, getType, getValue, getValueReport, getValues, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, keySet, put, setResulttoStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEntityIdgetEntityRegistryprotected void computeResult(org.dmg.pmml.DataType dataType)
computeResult in class Classification<String,V extends Number>public Set<String> getCategories()
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.
getCategories in interface CategoricalResultFeature<String>public List<String> getEntityIdRanking()
getEntityIdRanking in interface HasEntityIdRankingpublic String getDisplayValue()
getDisplayValue in interface HasDisplayValuepublic Double getAffinity(String category)
HasAffinityGets the affinity towards the specified category.
getAffinity in interface HasAffinityDouble.POSITIVE_INFINITY for distance measures and 0.0 for similarity measures).CategoricalResultFeature.getCategories()public Report getAffinityReport(String category)
getAffinityReport in interface HasAffinityCategoricalResultFeature.getCategories()public List<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 Double getEntityAffinity()
HasEntityAffinityGets the affinity towards the winning entity.
getEntityAffinity in interface HasEntityAffinityHasEntityId.getEntityId()Copyright © 2022. All rights reserved.