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

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

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

See Also:
Serialized Form

Constructor Summary
KernelVotedPerceptron.MyClassifier(java.util.List<Hyperplane> li, java.util.List<java.lang.Integer> cc)
           
 
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
 Explanation getExplanation(Instance instance)
          Return an Explanation for the classification
 Viewer toGUI()
          Create a view of this object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelVotedPerceptron.MyClassifier

public KernelVotedPerceptron.MyClassifier(java.util.List<Hyperplane> li,
                                          java.util.List<java.lang.Integer> cc)
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

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