public interface HasAffinity extends CategoricalResultFeature
A marker interface for classification or clustering results that provide an affinity distribution.
Affinity represents a degree of attraction between the sample and a particular category.
PMML deals with two kinds of affinities:
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.