public interface HasAffinity extends CategoricalResultFeature<String>
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:ResultFeature.AFFINITY| Modifier and Type | Method and Description |
|---|---|
Double |
getAffinity(String category)
Gets the affinity towards the specified category.
|
Report |
getAffinityReport(String category) |
getCategoriesDouble getAffinity(String category)
Gets the affinity towards the specified category.
Double.POSITIVE_INFINITY for distance measures and 0.0 for similarity measures).CategoricalResultFeature.getCategories()Report getAffinityReport(String category)
CategoricalResultFeature.getCategories()Copyright © 2020. All rights reserved.