|
||||||||||
| 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.learner.PredictionModel
com.rapidminer.operator.learner.weka.WekaClassifier
public class WekaClassifier
A Weka Classifier which can be used to classify
Examples. It is learned by the GenericWekaLearner and the
GenericWekaMetaLearner.
| Constructor Summary | |
|---|---|
WekaClassifier(ExampleSet exampleSet,
java.lang.String name,
weka.classifiers.Classifier classifier)
|
|
| Method Summary | |
|---|---|
void |
applyModelForInstance(weka.core.Instance instance,
Example e,
Attribute predictedLabelAttribute)
Classifies ervery weka instance and sets the result as predicted label of the current example. |
boolean |
equals(java.lang.Object o)
|
weka.classifiers.Classifier |
getClassifier()
|
java.lang.String |
getName()
The default implementation returns the result of the super class. |
java.awt.Component |
getVisualizationComponent(IOContainer container)
Returns a editor pane that displays the ResultObjectAdapter.toResultString() result
encoded as html. |
int |
hashCode()
|
boolean |
isUpdatable()
Returns true if the Weka classifier is updatable. |
ExampleSet |
performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
Subclasses should iterate through the given example set and set the prediction for each example. |
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.learner.PredictionModel |
|---|
apply, checkCompatibility, copyPredictedLabel, createPredictedLabel, getLabel, removePredictedLabel, removePredictedLabel |
| Methods inherited from class com.rapidminer.operator.AbstractModel |
|---|
getExtension, getFileDescription, getResultIcon, getTrainingHeader, setParameter |
| 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, finalize, getClass, 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 WekaClassifier(ExampleSet exampleSet,
java.lang.String name,
weka.classifiers.Classifier classifier)
| Method Detail |
|---|
public weka.classifiers.Classifier getClassifier()
public boolean isUpdatable()
isUpdatable in interface ModelisUpdatable in class AbstractModel
public void updateModel(ExampleSet updateExampleSet)
throws OperatorException
UnsupportedOperationException is thrown.
updateModel in interface ModelupdateModel in class AbstractModelOperatorException
public ExampleSet performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
throws OperatorException
PredictionModel
performPrediction in class PredictionModelOperatorException
public void applyModelForInstance(weka.core.Instance instance,
Example e,
Attribute predictedLabelAttribute)
public java.lang.String getName()
AbstractModel
getName in interface ResultObjectgetName in class AbstractModelpublic java.lang.String toString()
toString in interface ReadabletoString in class PredictionModelpublic java.lang.String toResultString()
ResultObjectAdapterObject.toString().
toResultString in interface ResultObjecttoResultString in class ResultObjectAdapterpublic java.awt.Component getVisualizationComponent(IOContainer container)
ResultObjectAdapterResultObjectAdapter.toResultString() result
encoded as html. Please note that the returned pane is already enclosed
by a scroll pane. If you overwrite this method you should again ensure that
the returned component is scrollable. The given container is totally ignored.
getVisualizationComponent in interface ResultObjectgetVisualizationComponent in class ResultObjectAdapterpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||