edu.cmu.minorthird.classify.algorithms.trees
Class RandomForests.VotingClassifier

java.lang.Object
  extended by edu.cmu.minorthird.classify.BinaryClassifier
      extended by edu.cmu.minorthird.classify.algorithms.trees.RandomForests.VotingClassifier
All Implemented Interfaces:
Classifier, Visible, java.io.Serializable
Enclosing class:
RandomForests

public static class RandomForests.VotingClassifier
extends BinaryClassifier
implements java.io.Serializable, Visible

A set of RandomTree Classifiers FIXME!! All of this stuff is copied directly for AdaBoost with (very) minor modifications

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.cmu.minorthird.classify.BinaryClassifier
classifierLearner
 
Constructor Summary
RandomForests.VotingClassifier(java.util.List<BinaryClassifier> classifiers)
           
 
Method Summary
 java.lang.String explain(Instance instance)
          Return some string that 'explains' the classification
 java.util.List<BinaryClassifier> getClassifiers()
           
 Explanation getExplanation(Instance instance)
          Return an Explanation for the classification
 double score(Instance instance)
          Get the weight for an instance being in the positive class.
 Viewer toGUI()
          Create a view of this object
 java.lang.String toString()
           
 
Methods inherited from class edu.cmu.minorthird.classify.BinaryClassifier
classification, getClassifierLearner, setClassifierLearner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RandomForests.VotingClassifier

public RandomForests.VotingClassifier(java.util.List<BinaryClassifier> classifiers)
Method Detail

getClassifiers

public java.util.List<BinaryClassifier> getClassifiers()

score

public double score(Instance instance)
Description copied from class: BinaryClassifier
Get the weight for an instance being in the positive class.

Specified by:
score in class BinaryClassifier

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

toString

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

toGUI

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

Specified by:
toGUI in interface Visible