edu.cmu.minorthird.classify.algorithms.linear
Class Winnow.MyClassifier

java.lang.Object
  extended by edu.cmu.minorthird.classify.algorithms.linear.Winnow.MyClassifier
All Implemented Interfaces:
Classifier, Visible, java.io.Serializable
Enclosing class:
Winnow

public static class Winnow.MyClassifier
extends java.lang.Object
implements Classifier, java.io.Serializable, Visible

See Also:
Serialized Form

Constructor Summary
Winnow.MyClassifier(Hyperplane cl, double mytheta)
           
 
Method Summary
 ClassLabel classification(Instance ins)
          Return a predicted type for the span, as a class label.
 java.lang.String explain(Instance instance)
          Return some string that 'explains' the classification
 Example filterFeat(Example ex)
           
 Explanation getExplanation(Instance instance)
          Return an Explanation for the classification
 Viewer toGUI()
          Create a view of this object
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Winnow.MyClassifier

public Winnow.MyClassifier(Hyperplane cl,
                           double mytheta)
Method Detail

classification

public ClassLabel classification(Instance ins)
Description copied from interface: Classifier
Return a predicted type for the span, as a class label.

Specified by:
classification in interface Classifier

filterFeat

public Example filterFeat(Example ex)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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

getExplanation

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

Specified by:
getExplanation in interface Classifier

toGUI

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

Specified by:
toGUI in interface Visible