|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.AbstractExampleSetProcessing
com.rapidminer.operator.features.AbstractFeatureProcessing
com.rapidminer.operator.features.selection.AbstractFeatureSelection
com.rapidminer.operator.preprocessing.filter.FeatureFilter
com.rapidminer.operator.preprocessing.filter.FeatureNameFilter
public class FeatureNameFilter
This operator switches off all features whose name matches the one given in
the parameter skip_features_with_name. The name can be
defined as a regular expression.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_EXCEPT_FEATURES_WITH_NAME
The parameter name for "Does not remove attributes if their name fulfills this matching criterion (accepts regular expressions)" |
static java.lang.String |
PARAMETER_SKIP_FEATURES_WITH_NAME
The parameter name for "Remove attributes with a matching name (accepts regular expressions)" |
| Fields inherited from class com.rapidminer.operator.preprocessing.filter.FeatureFilter |
|---|
PARAMETER_FILTER_SPECIAL_FEATURES |
| Constructor Summary | |
|---|---|
FeatureNameFilter(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
ExampleSet |
apply(ExampleSet exampleSet)
Applies filtering of features by looping through all features and checking switchOffFeature(). |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
boolean |
switchOffFeature(AttributeRole attributeRole)
Implements the method required by the superclass. |
| Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing |
|---|
apply, getInputClasses, getOutputClasses |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_SKIP_FEATURES_WITH_NAME
public static final java.lang.String PARAMETER_EXCEPT_FEATURES_WITH_NAME
| Constructor Detail |
|---|
public FeatureNameFilter(OperatorDescription description)
| Method Detail |
|---|
public ExampleSet apply(ExampleSet exampleSet)
throws OperatorException
FeatureFilterswitchOffFeature(). If TRUE is returned, the
feature is switched off, ie it won't be used by the following operators
in the chain. If FALSE is returned by switchOffFeature(),
the feature will keep its previous status.
apply in class FeatureFilterOperatorException
public boolean switchOffFeature(AttributeRole attributeRole)
throws OperatorException
switchOffFeature in class FeatureFilterattributeRole - Feature to check.
OperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class FeatureFilter
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||