com.rapidminer.operator.preprocessing
Class PreprocessingModel

java.lang.Object
  extended by com.rapidminer.operator.AbstractIOObject
      extended by com.rapidminer.operator.ResultObjectAdapter
          extended by com.rapidminer.operator.AbstractModel
              extended by com.rapidminer.operator.preprocessing.PreprocessingModel
All Implemented Interfaces:
IOObject, Model, ResultObject, Saveable, ViewModel, Readable, Reportable, LoggingHandler, java.io.Serializable
Direct Known Subclasses:
Dictionary, DiscretizationModel, MinMaxNormalizationModel, NominalToBinominalModel, ProportionNormalizationModel, ZTransformationModel

public abstract class PreprocessingModel
extends AbstractModel
implements ViewModel

Returns a more appropriate result icon. This model allows preprocessing Operators to be applied through a view without changing the underlying data. Since ModelApplier dont know the models, because they are wrapped within a container model, its necessary to ask for the parameter PARAMETER_CREATE_VIEW. This must be setted by the modelapplier, and should be the default behavior.

Author:
Ingo Mierswa, Sebastian Land
See Also:
Serialized Form

Constructor Summary
protected PreprocessingModel(ExampleSet exampleSet)
           
 
Method Summary
 ExampleSet apply(ExampleSet exampleSet)
          Applies the model on the given example set.
abstract  ExampleSet applyOnData(ExampleSet exampleSet)
           
 javax.swing.Icon getResultIcon()
          Returns null.
 void setParameter(java.lang.String key, java.lang.Object value)
          Throws a UserError since most models should not allow additional parameters during application.
 
Methods inherited from class com.rapidminer.operator.AbstractModel
getExtension, getFileDescription, getName, getTrainingHeader, isUpdatable, updateModel
 
Methods inherited from class com.rapidminer.operator.ResultObjectAdapter
addAction, getActions, getVisualizationComponent, isSavable, log, logError, logNote, logWarning, save, toHTML, toResultString
 
Methods inherited from class com.rapidminer.operator.AbstractIOObject
copy, getLog, getSource, initWriting, read, setLoggingHandler, setSource, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.ViewModel
getTargetAttributes, getValue
 
Methods inherited from interface com.rapidminer.operator.Model
isUpdatable, updateModel
 
Methods inherited from interface com.rapidminer.operator.ResultObject
getActions, getName, getVisualizationComponent, toResultString
 
Methods inherited from interface com.rapidminer.operator.IOObject
copy, getLog, getSource, setLoggingHandler, setSource, write
 
Methods inherited from interface com.rapidminer.operator.Saveable
getExtension, getFileDescription, isSavable, save
 
Methods inherited from interface com.rapidminer.report.Readable
toString
 

Constructor Detail

PreprocessingModel

protected PreprocessingModel(ExampleSet exampleSet)
Method Detail

applyOnData

public abstract ExampleSet applyOnData(ExampleSet exampleSet)
                                throws OperatorException
Throws:
OperatorException

apply

public ExampleSet apply(ExampleSet exampleSet)
                 throws OperatorException
Description copied from interface: Model
Applies the model on the given example set. Please note that the delivered example set might be the same as the input example set. This does, however, no always to be the case.

Specified by:
apply in interface Model
Throws:
OperatorException

setParameter

public void setParameter(java.lang.String key,
                         java.lang.Object value)
Description copied from class: AbstractModel
Throws a UserError since most models should not allow additional parameters during application. However, subclasses may overwrite this method.

Specified by:
setParameter in interface Model
Overrides:
setParameter in class AbstractModel

getResultIcon

public javax.swing.Icon getResultIcon()
Description copied from class: ResultObjectAdapter
Returns null. Subclasses might want to override this method and returns an appropriate icon.

Specified by:
getResultIcon in interface ResultObject
Overrides:
getResultIcon in class AbstractModel


Copyright © 2001-2009 by Rapid-I