edu.cmu.minorthird.classify.transform
Class TransformingMultiClassifier

java.lang.Object
  extended by edu.cmu.minorthird.classify.multi.MultiClassifier
      extended by edu.cmu.minorthird.classify.transform.TransformingMultiClassifier
All Implemented Interfaces:
Classifier, Visible, java.io.Serializable

public class TransformingMultiClassifier
extends MultiClassifier
implements Visible, java.io.Serializable

Author:
Cameron Williams Date: October 11, 2005 Transforms each instance with and InstanceTransform and then uses a multiClassifier to classify the transformed instance
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.cmu.minorthird.classify.multi.MultiClassifier
classifiers
 
Constructor Summary
TransformingMultiClassifier(MultiClassifier multiClassifier, AbstractInstanceTransform transformer)
           
 
Method Summary
 ClassLabel classification(Instance instance)
          Give you the class label for the first dimension
 java.lang.String explain(Instance instance)
          Return some string that 'explains' the classification
 Classifier[] getClassifiers()
           
 Explanation getExplanation(Instance instance)
          Return an Explanation for the classification
 AbstractInstanceTransform getTransform()
           
 MultiClassLabel multiLabelClassification(Instance instance)
          Returqn a predicted type for each element of the sequence.
 Viewer toGUI()
          Create a view of this object
 
Methods inherited from class edu.cmu.minorthird.classify.multi.MultiClassifier
getNumDim, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransformingMultiClassifier

public TransformingMultiClassifier(MultiClassifier multiClassifier,
                                   AbstractInstanceTransform transformer)
Method Detail

getTransform

public AbstractInstanceTransform getTransform()

getClassifiers

public Classifier[] getClassifiers()
Overrides:
getClassifiers in class MultiClassifier

multiLabelClassification

public MultiClassLabel multiLabelClassification(Instance instance)
Description copied from class: MultiClassifier
Returqn a predicted type for each element of the sequence.

Overrides:
multiLabelClassification in class MultiClassifier

classification

public ClassLabel classification(Instance instance)
Description copied from class: MultiClassifier
Give you the class label for the first dimension

Specified by:
classification in interface Classifier
Overrides:
classification in class MultiClassifier

explain

public java.lang.String explain(Instance instance)
Description copied from interface: Classifier
Return some string that 'explains' the classification

Specified by:
explain in interface Classifier
Overrides:
explain in class MultiClassifier

getExplanation

public Explanation getExplanation(Instance instance)
Description copied from interface: Classifier
Return an Explanation for the classification

Specified by:
getExplanation in interface Classifier
Overrides:
getExplanation in class MultiClassifier

toGUI

public Viewer toGUI()
Description copied from interface: Visible
Create a view of this object

Specified by:
toGUI in interface Visible
Overrides:
toGUI in class MultiClassifier