Class LabelerFactory.CardinalityBasedLabelerFactory

  • All Implemented Interfaces:
    LabelerFactory
    Enclosing interface:
    LabelerFactory

    public static class LabelerFactory.CardinalityBasedLabelerFactory
    extends java.lang.Object
    implements LabelerFactory
    The cardinality of the instances restricts what kinds of labels can be used, and the Labeler which produces the smallest, fastest labels will be returned.
    • Constructor Detail

      • CardinalityBasedLabelerFactory

        public CardinalityBasedLabelerFactory()
    • Method Detail

      • createLabeler

        public Labeler createLabeler​(weka.core.Instance testInstance,
                                     boolean ignoreUnknowns,
                                     MissingDataCompare mdc)
        Description copied from interface: LabelerFactory
        Create and return a new Labeler instance for labeling data instances via comparison with a test instance.
        Specified by:
        createLabeler in interface LabelerFactory
        Parameters:
        testInstance - The instance being classified
        ignoreUnknowns - True if missing data should be ignored, false otherwise
        mdc - The strategy for comparing missing data
        Returns:
        A new Labeler