Interface HasAffinity

  • All Superinterfaces:
    CategoricalResultFeature<String>, ResultFeature
    All Known Subinterfaces:
    HasAffinityRanking
    All Known Implementing Classes:
    AffinityDistribution, ClusterAffinityDistribution

    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:
    • Distance between two points in an n-dimensional feature space. Smaller distance values indicate more optimal fit.
    • Similarity between two feature vectors. Greater similarity values indicate more optimal fit.
    See Also:
    ResultFeature.AFFINITY