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 oflabels
can 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 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.-
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: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
-
-