|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.operator.AbstractModel
public abstract class AbstractModel
Abstract model is the superclass for all objects which change a data set. For example, a model generated by a learner might add a predicted attribute. Other models can be created during preprocessing, e.g. a transformation model containing the parameters for a z-transformation. Models can be combined by using a CombinedModel. All models can be applied with a ModelApplier operator.
| Constructor Summary | |
|---|---|
protected |
AbstractModel(ExampleSet exampleSet)
Created a new model which was built on the given example set. |
| Method Summary | |
|---|---|
java.lang.String |
getExtension()
Returns the default extension in file choosers. |
java.lang.String |
getFileDescription()
Returns the file description used in file choosers. |
java.lang.String |
getName()
The default implementation returns the result of the super class. |
javax.swing.Icon |
getResultIcon()
Returns null. |
protected HeaderExampleSet |
getTrainingHeader()
Delivers the training header example set, i.e. the header of the example set (without data reference) which was used for creating this model. |
boolean |
isUpdatable()
This default implementation returns false. |
void |
setParameter(java.lang.String key,
java.lang.Object value)
Throws a UserError since most models should not allow additional parameters during application. |
void |
updateModel(ExampleSet updateExampleSet)
This default implementation throws an UserError. |
| 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.Model |
|---|
apply |
| Methods inherited from interface com.rapidminer.operator.ResultObject |
|---|
getActions, getVisualizationComponent, toResultString |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
copy, getLog, getSource, setLoggingHandler, setSource, write |
| Methods inherited from interface com.rapidminer.operator.Saveable |
|---|
isSavable, save |
| Methods inherited from interface com.rapidminer.report.Readable |
|---|
toString |
| Constructor Detail |
|---|
protected AbstractModel(ExampleSet exampleSet)
HeaderExampleSet
which means that no reference to the data itself is kept but only to the header, i.e.
to the attribute meta descriptions.
| Method Detail |
|---|
protected HeaderExampleSet getTrainingHeader()
public boolean isUpdatable()
updateModel(ExampleSet).
isUpdatable in interface Model
public void updateModel(ExampleSet updateExampleSet)
throws OperatorException
UserError.
Subclasses overriding this method to update the model according to the given
example set should also override the method isUpdatable() by
delivering true.
updateModel in interface ModelOperatorException
public void setParameter(java.lang.String key,
java.lang.Object value)
throws OperatorException
setParameter in interface ModelOperatorExceptionpublic java.lang.String getName()
getName in interface ResultObjectgetName in class ResultObjectAdapterpublic java.lang.String getExtension()
Saveable
getExtension in interface Saveablepublic java.lang.String getFileDescription()
Saveable
getFileDescription in interface Saveablepublic javax.swing.Icon getResultIcon()
ResultObjectAdapter
getResultIcon in interface ResultObjectgetResultIcon in class ResultObjectAdapter
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||