Package weka.classifiers.lazy.AM.label
Interface LabelerFactory
-
- All Known Implementing Classes:
LabelerFactory.BitSetLabelerFactory,LabelerFactory.CardinalityBasedLabelerFactory,LabelerFactory.IntLabelerFactory,LabelerFactory.LongLabelerFactory
public interface LabelerFactoryA factory for creatingLabelerinstances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classLabelerFactory.BitSetLabelerFactorystatic classLabelerFactory.CardinalityBasedLabelerFactoryThe cardinality of the instances restricts what kinds oflabelscan be used, and the Labeler which produces the smallest, fastest labels will be returned.static classLabelerFactory.IntLabelerFactorystatic classLabelerFactory.LongLabelerFactory
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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.default intgetMaximumCardinality()
-
-
-
Method Detail
-
createLabeler
Labeler createLabeler(weka.core.Instance testInstance, boolean ignoreUnknowns, MissingDataCompare mdc)
Create and return a newLabelerinstance 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.
-
-