|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.tools.AbstractObservable<Operator>
com.rapidminer.operator.Operator
com.rapidminer.operator.AbstractExampleSetProcessing
com.rapidminer.operator.preprocessing.AbstractDataProcessing
com.rapidminer.operator.preprocessing.filter.ExampleFilter
public class ExampleFilter
This operator takes an ExampleSet as input and returns a new
ExampleSet including only the Examples that fulfill a
condition.
By specifying an implementation of
Condition and a parameter string, arbitrary
filters can be applied. Users can implement their own conditions by writing a
subclass of the above class and implementing a two argument constructor
taking an ExampleSet and a parameter string. This parameter string is
specified by the parameter parameter_string. Instead of using
one of the predefined conditions users can define their own implementation
with the fully qualified class name.
For "attribute_value_condition" the parameter string must have the form
attribute op value, where attribute is a name of an
attribute, value is a value the attribute can take and op is one of the
binary logical operators similar to the ones known from Java, e.g. greater
than or equals. Please note your can define a logical OR of several conditions
with || and a logical AND of two conditions with two ampers and - or
simply by applying several ExampleFilter operators in a row. Please note also
that for nominal attributes you can define a regular expression for value of the
possible equal and not equal checks.
For "unknown_attributes" the parameter string must be empty. This filter removes all examples containing attributes that have missing or illegal values. For "unknown_label" the parameter string must also be empty. This filter removes all examples with an unknown label value.
| Field Summary | |
|---|---|
static java.lang.String |
PARAMETER_CONDITION_CLASS
The parameter name for "Implementation of the condition. |
static java.lang.String |
PARAMETER_INVERT_FILTER
The parameter name for "Indicates if only examples should be accepted which would normally filtered. |
static java.lang.String |
PARAMETER_PARAMETER_STRING
The parameter name for "Parameter string for the condition, e.g. |
| Constructor Summary | |
|---|---|
ExampleFilter(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
ExampleSet |
apply(ExampleSet inputSet)
Delegate for the apply method. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
ResourceConsumptionEstimator |
getResourceConsumptionEstimator()
Subclasses can override this method if they are able to estimate the consumed resources (CPU time and memory), based on their input. |
ExampleSetMetaData |
modifyMetaData(ExampleSetMetaData emd)
Subclasses might override this method to define the meta data transformation performed by this operator. |
boolean |
writesIntoExistingData()
This method indicates whether the operator will perform a write operation on a cell in an existing column of the example set's ExampleTable. |
| Methods inherited from class com.rapidminer.operator.AbstractExampleSetProcessing |
|---|
doWork, getExampleSetInputPort, getExampleSetOutputPort, getInputPort, getRequiredMetaData, shouldAutoConnect |
| Methods inherited from class com.rapidminer.tools.AbstractObservable |
|---|
addObserver, addObserverAsFirst, fireUpdate, removeObserver |
| 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_CONDITION_CLASS
public static final java.lang.String PARAMETER_PARAMETER_STRING
public static final java.lang.String PARAMETER_INVERT_FILTER
| Constructor Detail |
|---|
public ExampleFilter(OperatorDescription description)
| Method Detail |
|---|
public ExampleSetMetaData modifyMetaData(ExampleSetMetaData emd)
AbstractExampleSetProcessing
modifyMetaData in class AbstractExampleSetProcessing
public ExampleSet apply(ExampleSet inputSet)
throws OperatorException
AbstractExampleSetProcessing
apply in class AbstractExampleSetProcessingOperatorExceptionpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operatorpublic boolean writesIntoExistingData()
AbstractExampleSetProcessingExampleTable. If yes, the
original example will be completely copied in memory if the original port is used.
writesIntoExistingData in class AbstractExampleSetProcessingpublic ResourceConsumptionEstimator getResourceConsumptionEstimator()
Operator
getResourceConsumptionEstimator in interface ResourceConsumergetResourceConsumptionEstimator in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||