Class ClassLabelFilter.Par
- java.lang.Object
-
- elki.datasource.filter.typeconversions.ClassLabelFilter.Par
-
- All Implemented Interfaces:
Parameterizer
- Enclosing class:
- ClassLabelFilter
public static class ClassLabelFilter.Par extends java.lang.Object implements Parameterizer
Parameterization class.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description static OptionIDCLASS_LABEL_CLASS_IDParameter to specify the class of occurring class labels.static OptionIDCLASS_LABEL_INDEX_IDOptional parameter that specifies the index of the label to be used as class label, must be an integer equal to or greater than 0.private ClassLabel.Factory<?>classLabelFactoryThe class label factory to use.protected intclassLabelIndexThe index of the label to be used as class label, null if no class label is specified.
-
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.ClassLabelFiltermake()Make an instance after successful configuration.
-
-
-
Field Detail
-
CLASS_LABEL_INDEX_ID
public static final OptionID CLASS_LABEL_INDEX_ID
Optional parameter that specifies the index of the label to be used as class label, must be an integer equal to or greater than 0.
-
CLASS_LABEL_CLASS_ID
public static final OptionID CLASS_LABEL_CLASS_ID
Parameter to specify the class of occurring class labels.
-
classLabelIndex
protected int classLabelIndex
The index of the label to be used as class label, null if no class label is specified.
-
classLabelFactory
private ClassLabel.Factory<?> classLabelFactory
The class label factory to use.
-
-
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 ClassLabelFilter 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
-
-