public interface HasAffinity extends CategoricalResultFeature<java.lang.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 |
|---|---|
java.lang.Double |
getAffinity(java.lang.String category)
Gets the affinity towards the specified category.
|
Report |
getAffinityReport(java.lang.String category) |
getCategoriesjava.lang.Double getAffinity(java.lang.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(java.lang.String category)
CategoricalResultFeature.getCategories()Copyright © 2024. All Rights Reserved.