com.rapidminer.operator.preprocessing.filter
Class NominalToBinominalModel
java.lang.Object
com.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.operator.AbstractModel
com.rapidminer.operator.preprocessing.PreprocessingModel
com.rapidminer.operator.preprocessing.filter.NominalToBinominalModel
- All Implemented Interfaces:
- IOObject, Model, ResultObject, Saveable, ViewModel, Readable, Reportable, LoggingHandler, java.io.Serializable
public class NominalToBinominalModel
- extends PreprocessingModel
This model maps the values of all nominal values to binary attributes. For example,
if a nominal attribute with name "costs" and possible nominal values
"low", "moderate", and "high" is transformed, the result
is a set of three binominal attributes "costs = low", "costs = moderate",
and "costs = high". Only one of the values of each attribute is true for a specific
example, the other values are false.
- Author:
- Sebastian Land
- See Also:
- Serialized Form
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
addAction, getActions, getVisualizationComponent, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NominalToBinominalModel
public NominalToBinominalModel(ExampleSet exampleSet,
boolean translateBinominals,
boolean useOnlyUnderscoreInNames)
applyOnData
public ExampleSet applyOnData(ExampleSet exampleSet)
throws OperatorException
- Specified by:
applyOnData in class PreprocessingModel
- Throws:
OperatorException
getTargetAttributes
public Attributes getTargetAttributes(ExampleSet applySet)
- Description copied from interface:
ViewModel
- This method has to return a legal Attributes object containing
every Attribute, the view should contain
- Returns:
- The attribute object
getValue
public double getValue(Attribute targetAttribute,
double value)
- Description copied from interface:
ViewModel
- This method has to provide the attribute value mapping for the view.
The views attributes will ask this method for their value.
- Parameters:
targetAttribute - the attribute, which asks for his valuevalue - the value the source attribute had in original data
- Returns:
- the value the attribute should have in target view
toString
public java.lang.String toString()
- Specified by:
toString in interface Readable- Overrides:
toString in class java.lang.Object
Copyright © 2001-2009 by Rapid-I