edu.cmu.minorthird.classify.algorithms.trees
Class RandomForests.VotingClassifier
java.lang.Object
edu.cmu.minorthird.classify.BinaryClassifier
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RandomForests.VotingClassifier
public RandomForests.VotingClassifier(java.util.List<BinaryClassifier> classifiers)
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