com.rapidminer.operator.clustering
Class WekaClusterModel

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.clustering.WekaClusterModel
All Implemented Interfaces:
IOObject, Model, ResultObject, Saveable, Readable, Reportable, LoggingHandler, java.io.Serializable

public class WekaClusterModel
extends AbstractModel

A Weka clusterer which can be used to cluster examples. It is generated by a WekaClusterer.

Author:
Ingo Mierswa
See Also:
Serialized Form

Constructor Summary
WekaClusterModel(ExampleSet exampleSet, weka.clusterers.Clusterer clusterer)
           
 
Method Summary
 ExampleSet apply(ExampleSet exampleSet)
          Applies the model on the given example set.
 void applyModelForInstance(weka.core.Instance instance, Example e, Attribute clusterAtt)
          Clusters ervery weka instance and sets the result as cluster index of the current example.
 java.lang.String toString()
           
 
Methods inherited from class com.rapidminer.operator.AbstractModel
getExtension, getFileDescription, getName, getResultIcon, getTrainingHeader, isUpdatable, setParameter, 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, wait, wait, wait
 
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
 

Constructor Detail

WekaClusterModel

public WekaClusterModel(ExampleSet exampleSet,
                        weka.clusterers.Clusterer clusterer)
Method Detail

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.

Throws:
OperatorException

applyModelForInstance

public void applyModelForInstance(weka.core.Instance instance,
                                  Example e,
                                  Attribute clusterAtt)
                           throws OperatorException
Clusters ervery weka instance and sets the result as cluster index of the current example.

Throws:
OperatorException

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