edu.umass.cs.mallet.base.classify
Class AdaBoostM2
java.lang.Object
edu.umass.cs.mallet.base.classify.Classifier
edu.umass.cs.mallet.base.classify.AdaBoostM2
- All Implemented Interfaces:
- java.io.Serializable
- public class AdaBoostM2
- extends Classifier
- implements java.io.Serializable
AdaBoostM2
Yoav Freund and Robert E. Schapire
"Experiments with a New Boosting Algorithm"
In Journal of Machine Learning: Proceedings of the 13th International Conference, 1996
http://www.cs.princeton.edu/~schapire/papers/FreundSc96b.ps.Z
- See Also:
- Serialized Form
Methods inherited from class edu.umass.cs.mallet.base.classify.Classifier |
classify, classify, classify, getAccuracy, getAccuracy, getAlphabet, getF1, getF1, getF1, getF1, getInstancePipe, getLabelAlphabet, getPrecision, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, getRecall, print, print |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AdaBoostM2
public AdaBoostM2(Pipe instancePipe,
Classifier[] weakClassifiers,
double[] alphas)
getNumWeakClassifiers
public int getNumWeakClassifiers()
- Get the number of weak classifiers in this ensemble classifier
getTrimmedClassifier
public AdaBoostM2 getTrimmedClassifier(int numWeakClassifiersToUse)
- Return an AdaBoostM2 classifier that uses only the first
numWeakClassifiersToUse weak learners.
The returned classifier's Pipe and weak classifiers
are backed by the respective objects of this classifier,
so changes to the returned classifier's Pipe and weak
classifiers are reflected in this classifier, and vice versa.
classify
public Classification classify(Instance inst)
- Specified by:
classify
in class Classifier
classify
public Classification classify(Instance inst,
int numWeakClassifiersToUse)
- Classify the given instance using only the first
numWeakClassifiersToUse classifiers
trained during boosting