Docsity

Boosting and Ensemble Methods in Machine Learning: CS446-Spring08 - Prof. Dan Roth, Study notes of Computer Science

Toggle sidebar
bg1
On-line Learning CS446-Spring08 1
Boosting Notes
• Weak PAC learning is the weakest demand we could place on an
algorithm in the PAC setting without trivializing the learning problem.
• Consequence of Boosting: Any class that is efficiently PAC
learnable is in fact efficiently PAC learnable with specific upper
bounds on the required resources.
• For example: if a concept class is efficiently PAC learnable then it is
efficiently PAC learnable by an algorithm whose required memory is
bounded by a polynomial in n, size c and log(1/ε).
• This shows that there is no concept class for which efficient PAC
learnability requires that the entire sample be contained in memory
at one time – there is always another algorithm that “forgets” most of
the sample. [The Strength of Weak Learnability; Schapire, 89]
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Boosting and Ensemble Methods in Machine Learning: CS446-Spring08 - Prof. Dan Roth and more Study notes Computer Science in PDF only on Docsity!

CS446-Spring

Boosting Notes

•^

Weak PAC learning is the weakest demand we could place on analgorithm in the PAC setting without trivializing the learning problem.

-^

Consequence of Boosting: Any class that is efficiently PAClearnable is in fact efficiently PAC learnable with specific upperbounds on the required resources.

-^

For example: if a concept class is efficiently PAC learnable then it isefficiently PAC learnable by an algorithm whose required memory isbounded by a polynomial in n, size c and log(1/

ε).

•^

This shows that there is no concept class for which efficient PAClearnability requires that the entire sample be contained in memoryat one time – there is always another algorithm that “forgets” most ofthe sample.

[The Strength of Weak Learnability; Schapire, 89]

CS446-Spring

Boosting The Confidence

-^

Unlike Boosting the accuracy, Boosting the confidence iseasy.

-^

Let’s fix the accuracy parameter to

-^

Suppose that we have a learning algorithm L such that forany target concept c

∈^

C and any distribution D, L outputs

h s.t. error(h) <

ε^ with confidence at least

δ^0

1/q(n,size(c)), for some polynomial q.

-^

Then, if we are willing to tolerate a slightly higherhypothesis error,

ε^ +

γ^ (

γ^ > 0, arbitrarily small) then we can

achieve arbitrary high confidence 1-

CS446-Spring

Summary of Ensemble Methods

•^

Boosting

•^

Bagging

•^

Random Forests

CS446-Spring

Boosting

•^

Initialization:^ – Weight all training samples equally

•^

Iteration Step:^ – Train model on (weighted) train set^ – Compute error of model on train set^ – Increase weights on train cases model gets wrong!!!

•^

Typically requires 100’s to 1000’s of iterations

•^

Return final model:^ – Carefully weighted prediction of each model

CS446-Spring

Bagging

Bagging predictors is a method for generating multiple versions of a predictor and

using these to get an aggregated predictor. The aggregation averages over the versions when predicting a numerical outcomeand does a plurality vote when predicting a class. The multiple versions are formed by making bootstrap replicates of the learning setand using these as new learning sets. Tests on real and simulated data sets using classification and regression trees andsubset selection in linear regression show that bagging can give substantial gainsin accuracy. The vital element is the instability of the prediction method. If perturbing the learningset can cause significant changes in the predictor constructed then bagging canimprove accuracy.

CS446-Spring

Example: Bagged Decision Trees

•^

Draw 100 bootstrap samples of data

-^

Train trees on each sample

Æ

100 trees

•^

Average prediction of trees on out-of-bag samples

Average prediction

(0.23 + 0.19 + 0.34 + 0.22 + 0.26 + … + 0.31) / # Trees = 0.