public class AdaBoost extends Classifier
instancePipe| Constructor and Description |
|---|
AdaBoost(Pipe instancePipe,
Classifier[] weakClassifiers,
double[] alphas) |
| Modifier and Type | Method and Description |
|---|---|
Classification |
classify(Instance inst) |
Classification |
classify(Instance inst,
int numWeakClassifiersToUse)
Classify the given instance using only the first
numWeakClassifiersToUse classifiers
trained during boosting
|
int |
getNumWeakClassifiers()
Get the number of weak classifiers in this ensemble classifier
|
AdaBoost |
getTrimmedClassifier(int numWeakClassifiersToUse)
Return an AdaBoost classifier that uses only the first
numWeakClassifiersToUse weak learners.
|
classify, classify, classify, getAccuracy, getAccuracy, getAlphabet, getF1, getF1, getF1, getF1, getInstancePipe, getLabelAlphabet, getPrecision, getPrecision, getPrecision, getPrecision, getRecall, getRecall, getRecall, getRecall, print, printpublic AdaBoost(Pipe instancePipe, Classifier[] weakClassifiers, double[] alphas)
public int getNumWeakClassifiers()
public AdaBoost getTrimmedClassifier(int numWeakClassifiersToUse)
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.
public Classification classify(Instance inst)
classify in class Classifierpublic Classification classify(Instance inst, int numWeakClassifiersToUse)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.