Package weka.classifiers.lazy.AM.label
Class LabelerFactory.IntLabelerFactory
- java.lang.Object
-
- weka.classifiers.lazy.AM.label.LabelerFactory.IntLabelerFactory
-
- All Implemented Interfaces:
LabelerFactory
- Enclosing interface:
- LabelerFactory
public static class LabelerFactory.IntLabelerFactory extends java.lang.Object implements LabelerFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface weka.classifiers.lazy.AM.label.LabelerFactory
LabelerFactory.BitSetLabelerFactory, LabelerFactory.CardinalityBasedLabelerFactory, LabelerFactory.IntLabelerFactory, LabelerFactory.LongLabelerFactory
-
-
Constructor Summary
Constructors Constructor Description IntLabelerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Labeler
createLabeler(weka.core.Instance testInstance, boolean ignoreUnknowns, MissingDataCompare mdc)
Create and return a newLabeler
instance for labeling data instances via comparison with a test instance.int
getMaximumCardinality()
-
-
-
Method Detail
-
createLabeler
public Labeler createLabeler(weka.core.Instance testInstance, boolean ignoreUnknowns, MissingDataCompare mdc)
Description copied from interface:LabelerFactory
Create and return a newLabeler
instance for labeling data instances via comparison with a test instance.- Specified by:
createLabeler
in interfaceLabelerFactory
- Parameters:
testInstance
- The instance being classifiedignoreUnknowns
- True if missing data should be ignored, false otherwisemdc
- The strategy for comparing missing data- Returns:
- A new Labeler
-
getMaximumCardinality
public int getMaximumCardinality()
- Specified by:
getMaximumCardinality
in interfaceLabelerFactory
- Returns:
- The maximum cardinality for labels created by this labeler, or -1 if there is no maximum.
-
-