Package weka.classifiers.lazy.AM.label
Interface LabelerFactory
-
- All Known Implementing Classes:
LabelerFactory.BitSetLabelerFactory
,LabelerFactory.CardinalityBasedLabelerFactory
,LabelerFactory.IntLabelerFactory
,LabelerFactory.LongLabelerFactory
public interface LabelerFactory
A factory for creatingLabeler
instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
LabelerFactory.BitSetLabelerFactory
static class
LabelerFactory.CardinalityBasedLabelerFactory
The cardinality of the instances restricts what kinds oflabels
can be used, and the Labeler which produces the smallest, fastest labels will be returned.static class
LabelerFactory.IntLabelerFactory
static class
LabelerFactory.LongLabelerFactory
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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.default int
getMaximumCardinality()
-
-
-
Method Detail
-
createLabeler
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.- Parameters:
testInstance
- The instance being classifiedmdc
- The strategy for comparing missing dataignoreUnknowns
- True if missing data should be ignored, false otherwise- Returns:
- A new Labeler
-
getMaximumCardinality
default int getMaximumCardinality()
- Returns:
- The maximum cardinality for labels created by this labeler, or -1 if there is no maximum.
-
-