|
||||||||||
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.TFIDFFilter
public class TFIDFFilter
This operator generates TF-IDF values from the input data. The input example set must contain either simple counts, which will be normalized during calculation of the term frequency TF, or it already contains the calculated term frequency values (in this case no normalization will be done).
Field Summary | |
---|---|
static java.lang.String |
PARAMETER_CALCULATE_TERM_FREQUENCIES
The parameter name for "Indicates if term frequency values should be generated (must be done if input data is given as simple occurence counts). |
Constructor Summary | |
---|---|
TFIDFFilter(OperatorDescription description)
|
Method Summary | |
---|---|
ExampleSet |
apply(ExampleSet exampleSet)
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. |
protected MetaData |
modifyMetaData(ExampleSetMetaData metaData)
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_CALCULATE_TERM_FREQUENCIES
Constructor Detail |
---|
public TFIDFFilter(OperatorDescription description)
Method Detail |
---|
protected MetaData modifyMetaData(ExampleSetMetaData metaData) throws UndefinedParameterError
AbstractExampleSetProcessing
modifyMetaData
in class AbstractExampleSetProcessing
UndefinedParameterError
public ExampleSet apply(ExampleSet exampleSet) throws OperatorException
AbstractExampleSetProcessing
apply
in class AbstractExampleSetProcessing
OperatorException
public java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes
in interface ParameterHandler
getParameterTypes
in class Operator
public boolean writesIntoExistingData()
AbstractExampleSetProcessing
ExampleTable
. If yes, the
original example will be completely copied in memory if the original port is used.
Note: Subclasses must implement this method. The safe implementation would be to
return true, however, for backwards compatibility, the default implementation returns false.
writesIntoExistingData
in class AbstractExampleSetProcessing
public ResourceConsumptionEstimator getResourceConsumptionEstimator()
Operator
getResourceConsumptionEstimator
in interface ResourceConsumer
getResourceConsumptionEstimator
in class Operator
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |