Package weka.classifiers.lazy.AM.label
Class LabelerFactory.CardinalityBasedLabelerFactory
- java.lang.Object
-
- weka.classifiers.lazy.AM.label.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 oflabelscan be used, and the Labeler which produces the smallest, fastest labels will be returned.
-
-
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 CardinalityBasedLabelerFactory()
-
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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface weka.classifiers.lazy.AM.label.LabelerFactory
getMaximumCardinality
-
-
-
-
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
-
-