|
||||||||||
| 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.preprocessing.AbstractDataProcessing
com.rapidminer.operator.preprocessing.filter.ValueReplenishment
com.rapidminer.operator.preprocessing.filter.MissingValueReplenishment
public class MissingValueReplenishment
Replaces missing values in examples. If a value is missing, it is replaced by
one of the functions "minimum", "maximum",
"average", and "none", which is applied to the non
missing attribute values of the example set. "none" means, that the
value is not replaced. The function can be selected using the parameter list
columns. If an attribute's name appears in this list as a
key, the value is used as the function name. If the attribute's name is not
in the list, the function specified by the default parameter
is used. For nominal attributes the mode is used for the average, i.e. the
nominal value which occurs most often in the data. For nominal attributes and
replacement type zero the first nominal value defined for this
attribute is used. The replenishment "value" indicates that the
user defined parameter should be used for the replacement.
| Field Summary |
|---|
| Fields inherited from class com.rapidminer.operator.preprocessing.filter.ValueReplenishment |
|---|
PARAMETER_COLUMNS, PARAMETER_DEFAULT, PARAMETER_REPLENISHMENT_VALUE |
| Constructor Summary | |
|---|---|
MissingValueReplenishment(OperatorDescription description)
|
|
| Method Summary | |
|---|---|
int |
getDefaultColumnFunction()
Returns the index of the replenishment function which will be used for attributes listed in the parameter list "columns". |
int |
getDefaultFunction()
Returns the index of the replenishment function which will be used for attributes not listed in the parameter list "columns". |
java.lang.String[] |
getFunctionNames()
Returns an array of all replenishment functions. |
double |
getReplenishmentValue(int functionIndex,
ExampleSet exampleSet,
Attribute attribute,
double currentValue,
java.lang.String valueString)
Returns the value of the replenishment function with the given index. |
boolean |
replenishValue(double currentValue)
Returns true iff the value should be replenished. |
| Methods inherited from class com.rapidminer.operator.preprocessing.filter.ValueReplenishment |
|---|
apply, getParameterTypes |
| 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 |
| Constructor Detail |
|---|
public MissingValueReplenishment(OperatorDescription description)
| Method Detail |
|---|
public java.lang.String[] getFunctionNames()
ValueReplenishment
getFunctionNames in class ValueReplenishmentpublic int getDefaultFunction()
ValueReplenishment
getDefaultFunction in class ValueReplenishmentpublic int getDefaultColumnFunction()
ValueReplenishment
getDefaultColumnFunction in class ValueReplenishmentpublic boolean replenishValue(double currentValue)
ValueReplenishment
replenishValue in class ValueReplenishment
public double getReplenishmentValue(int functionIndex,
ExampleSet exampleSet,
Attribute attribute,
double currentValue,
java.lang.String valueString)
ValueReplenishment
getReplenishmentValue in class ValueReplenishment
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||