|
||||||||||
| 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
com.rapidminer.operator.GroupedModel
public class GroupedModel
This model is a container for all models which should be applied in a sequence.
| Constructor Summary | |
|---|---|
GroupedModel()
|
|
| Method Summary | ||
|---|---|---|
void |
addModel(Model model)
Adds the given model to the container. |
|
ExampleSet |
apply(ExampleSet exampleSet)
Applies all models. |
|
|
getModel(java.lang.Class<T> desiredClass)
Returns the first model in this container with the desired class. |
|
Model |
getModel(int index)
Returns the i-th model. |
|
java.lang.String |
getName()
The default implementation returns the result of the super class. |
|
int |
getNumberOfModels()
Returns the total number of models. |
|
java.awt.Component |
getVisualizationComponent(IOContainer container)
Returns a visualization component with a model selector. |
|
boolean |
isUpdatable()
Returns true if all inner models return true. |
|
java.util.Iterator<Model> |
iterator()
|
|
void |
prependModel(Model model)
Adds the given model to the container. |
|
void |
removeModel(Model model)
Removes the given model from the container. |
|
void |
setParameter(java.lang.String key,
java.lang.Object value)
Invokes the method for all models. |
|
java.lang.String |
toResultString()
The default implementation simply returns the result of the method Object.toString(). |
|
java.lang.String |
toString()
|
|
void |
updateModel(ExampleSet updateExampleSet)
Updates the model if the classifier is updatable. |
|
| Methods inherited from class com.rapidminer.operator.AbstractModel |
|---|
getExtension, getFileDescription, getResultIcon, getTrainingHeader |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, getActions, isSavable, log, logError, logNote, logWarning, save, toHTML |
| 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, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.ResultObject |
|---|
getActions |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
copy, getLog, getSource, setLoggingHandler, setSource, write |
| Methods inherited from interface com.rapidminer.operator.Saveable |
|---|
isSavable, save |
| Constructor Detail |
|---|
public GroupedModel()
| Method Detail |
|---|
public ExampleSet apply(ExampleSet exampleSet)
throws OperatorException
apply in interface ModelOperatorExceptionpublic java.util.Iterator<Model> iterator()
iterator in interface java.lang.Iterable<Model>public boolean isUpdatable()
isUpdatable in interface ModelisUpdatable in class AbstractModel
public void updateModel(ExampleSet updateExampleSet)
throws OperatorException
UserError is thrown.
updateModel in interface ModelupdateModel in class AbstractModelOperatorExceptionpublic java.lang.String getName()
AbstractModel
getName in interface ResultObjectgetName in class AbstractModelpublic void prependModel(Model model)
public void addModel(Model model)
public void removeModel(Model model)
public int getNumberOfModels()
public Model getModel(int index)
public <T extends Model> T getModel(java.lang.Class<T> desiredClass)
public void setParameter(java.lang.String key,
java.lang.Object value)
throws OperatorException
setParameter in interface ModelsetParameter in class AbstractModelOperatorExceptionpublic java.lang.String toString()
toString in interface ReadabletoString in class java.lang.Objectpublic java.lang.String toResultString()
ResultObjectAdapterObject.toString().
toResultString in interface ResultObjecttoResultString in class ResultObjectAdapterpublic java.awt.Component getVisualizationComponent(IOContainer container)
getVisualizationComponent in interface ResultObjectgetVisualizationComponent in class ResultObjectAdapter
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||