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 LabelercreateLabeler(weka.core.Instance testInstance, boolean ignoreUnknowns, MissingDataCompare mdc)Create and return a newLabelerinstance for labeling data instances via comparison with a test instance.intgetMaximumCardinality()
-
-
-
Method Detail
-
createLabeler
public Labeler createLabeler(weka.core.Instance testInstance, boolean ignoreUnknowns, MissingDataCompare mdc)
Description copied from interface:LabelerFactoryCreate and return a newLabelerinstance for labeling data instances via comparison with a test instance.- Specified by:
createLabelerin 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:
getMaximumCardinalityin interfaceLabelerFactory- Returns:
- The maximum cardinality for labels created by this labeler, or -1 if there is no maximum.
-
-