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

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

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

See Also:
Serialized Form

Constructor Summary
BalancedWinnow.MyClassifier(Hyperplane pos_h, Hyperplane neg_h, double mytheta)
           
 
Method Summary
 ClassLabel classification(Instance instance1)
          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

BalancedWinnow.MyClassifier

public BalancedWinnow.MyClassifier(Hyperplane pos_h,
                                   Hyperplane neg_h,
                                   double mytheta)
Method Detail

classification

public ClassLabel classification(Instance instance1)
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