public interface HasAffinity extends CategoricalResultFeature
Affinity represents a degree of attraction between the sample and a particular category.
PMML deals with two kinds of affinities:
Clustering is an unsupervised learning task.
The set of all categories is defined by the identifiers of reference entities.
For clustering models this includes all clusters.
For k-nearest neighbor models this includes k most optimal training instances.
ResultFeatureType.AFFINITY| Modifier and Type | Method and Description |
|---|---|
Double |
getAffinity(String value)
Gets the affinity towards the specified category.
|
getCategoryValuesDouble getAffinity(String value)
Double.POSITIVE_INFINITY for distance measures and 0.0 for similarity measures).CategoricalResultFeature.getCategoryValues()Copyright © 2015. All Rights Reserved.