Class ClassLabelFromPatternFilter.Par
- java.lang.Object
-
- elki.datasource.filter.typeconversions.ClassLabelFromPatternFilter.Par
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- ClassLabelFromPatternFilter
public static class ClassLabelFromPatternFilter.Par extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringnegativeNames for positive and negative classes.static OptionIDNEGATIVE_IDClass label to assign to negative instances.(package private) java.util.regex.PatternpatternMatching pattern.static OptionIDPATTERN_IDPattern for recognizing positive objects.(package private) java.lang.StringpositiveNames for positive and negative classes.static OptionIDPOSITIVE_IDClass label to assign to positive instances.
-
Constructor Summary
Constructors Constructor Description Par()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Parameterization config)Configure the class.ClassLabelFromPatternFiltermake()Make an instance after successful configuration.
-
-
-
Field Detail
-
PATTERN_ID
public static final OptionID PATTERN_ID
Pattern for recognizing positive objects.
-
POSITIVE_ID
public static final OptionID POSITIVE_ID
Class label to assign to positive instances.
-
NEGATIVE_ID
public static final OptionID NEGATIVE_ID
Class label to assign to negative instances.
-
pattern
java.util.regex.Pattern pattern
Matching pattern.
-
positive
java.lang.String positive
Names for positive and negative classes.
-
negative
java.lang.String negative
Names for positive and negative classes.
-
-
Method Detail
-
configure
public void configure(Parameterization config)
Description copied from interface:ParameterizerConfigure the class.Note: the status is collected by the parameterization object, so that multiple errors may arise and be reported in one run.
- Specified by:
configurein interfaceParameterizer- Parameters:
config- Parameterization
-
make
public ClassLabelFromPatternFilter make()
Description copied from interface:ParameterizerMake an instance after successful configuration.Note: your class should return the exact type, only this very broad interface should use
Objectas return type.- Specified by:
makein interfaceParameterizer- Returns:
- a new instance
-
-