public class AffinityDistribution<V extends Number> extends Classification<String,V> implements HasEntityIdRanking, HasAffinityRanking, HasEntityAffinity
Classification.Type| Constructor and Description |
|---|
AffinityDistribution(Classification.Type type,
ValueMap<String,V> values,
Object result) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
Double |
getEntityAffinity()
Gets the affinity towards the winning entity.
|
String |
getEntityId()
Gets the
Entity identifier. |
List<String> |
getEntityIdRanking() |
static Classification.Type |
validateType(Classification.Type type) |
createOrdering, entryKeys, entrySet, entryValues, getPrediction, getPredictionReport, getResult, getType, getValue, getValueReport, getValues, getWinner, getWinner, getWinnerKeys, getWinnerList, getWinnerRanking, getWinnerValues, keySet, put, setResult, toStringHelpertoStringpublic AffinityDistribution(Classification.Type type, ValueMap<String,V> values, Object result)
public 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 String getEntityId()
HasEntityId
Gets the Entity identifier.
getEntityId in interface HasEntityIdpublic List<String> getEntityIdRanking()
getEntityIdRanking in interface HasEntityIdRankingpublic 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 HasEntityAffinitypublic static Classification.Type validateType(Classification.Type type)
Copyright © 2020. All rights reserved.