edu.cmu.minorthird.classify.relational
Class StackedGraphicalLearner.StackedGraphicalClassifier

java.lang.Object
  extended by edu.cmu.minorthird.classify.relational.StackedGraphicalLearner.StackedGraphicalClassifier
All Implemented Interfaces:
Classifier, Visible
Enclosing class:
StackedGraphicalLearner

public class StackedGraphicalLearner.StackedGraphicalClassifier
extends java.lang.Object
implements Classifier, Visible


Constructor Summary
StackedGraphicalLearner.StackedGraphicalClassifier(Classifier[] m, StackedGraphicalLearner.StackingParams params, RealRelationalDataset ds)
           
 
Method Summary
 ClassLabel classification(Instance instance)
          Return a predicted type for the span, as a class label.
 java.util.Map<java.lang.String,ClassLabel> classification(RealRelationalDataset dataset)
           
 java.lang.String explain(Instance instance)
          Return some string that 'explains' the classification
 Explanation getExplanation(Instance instance)
          Return an Explanation for the classification
 double score(Instance instance, java.lang.String classLabelName)
           
 RealRelationalDataset stackTestDataset(RealRelationalDataset dataset, java.util.Map<java.lang.String,ClassLabel> predictions)
           
 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

StackedGraphicalLearner.StackedGraphicalClassifier

public StackedGraphicalLearner.StackedGraphicalClassifier(Classifier[] m,
                                                          StackedGraphicalLearner.StackingParams params,
                                                          RealRelationalDataset ds)
Method Detail

classification

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

Specified by:
classification in interface Classifier

classification

public java.util.Map<java.lang.String,ClassLabel> classification(RealRelationalDataset dataset)

stackTestDataset

public RealRelationalDataset stackTestDataset(RealRelationalDataset dataset,
                                              java.util.Map<java.lang.String,ClassLabel> predictions)

score

public double score(Instance instance,
                    java.lang.String classLabelName)

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