|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.classify.OneVsAllClassifier
public class OneVsAllClassifier
A Classifier composed of a bunch of binary classifiers, each of which separates one class from the others.
| Constructor Summary | |
|---|---|
OneVsAllClassifier(java.lang.String[] classNames,
Classifier[] binaryClassifiers)
Create a OneVsAllClassifier. |
|
| Method Summary | |
|---|---|
ClassLabel |
classification(Instance instance)
Return a predicted type for the span, as a class label. |
java.lang.String |
explain(Instance instance)
Return some string that 'explains' the classification |
Classifier[] |
getBinaryClassifiers()
|
java.lang.String[] |
getClassNames()
|
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 |
|---|
public OneVsAllClassifier(java.lang.String[] classNames,
Classifier[] binaryClassifiers)
| Method Detail |
|---|
public Classifier[] getBinaryClassifiers()
public ClassLabel classification(Instance instance)
Classifier
classification in interface Classifierpublic java.lang.String explain(Instance instance)
Classifier
explain in interface Classifierpublic Explanation getExplanation(Instance instance)
Classifier
getExplanation in interface Classifierpublic java.lang.String[] getClassNames()
public java.lang.String toString()
toString in class java.lang.Objectpublic Viewer toGUI()
Visible
toGUI in interface Visible
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||