edu.cmu.minorthird.classify.transform
Class TransformingMultiClassifier
java.lang.Object
edu.cmu.minorthird.classify.multi.MultiClassifier
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TransformingMultiClassifier
public TransformingMultiClassifier(MultiClassifier multiClassifier,
AbstractInstanceTransform transformer)
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