Bootstrap and Bagging: Estimating Generalization Error and Combining Classifiers, Slides of Mechanical Engineering

The bootstrap method and bagging estimates in machine learning. The bootstrap method is used to estimate the generalization error by generating many training sets from the original data and learning a model on each set. Bagging estimates combine the predictions of multiple models trained on different bootstrap samples to improve the performance. The document also covers the adaboost algorithm, which is a popular boosting method for generating training sets and combining classifiers.

Typology: Slides

2012/2013

Uploaded on 04/19/2013

padmaja
padmaja 🇮🇳

4.5

(12)

45 documents

1 / 133

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
We are discussing methods to estimate the test error
(or true risk) of a model essentially using the training
data.
PR NPTEL course p.1/133
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Bootstrap and Bagging: Estimating Generalization Error and Combining Classifiers and more Slides Mechanical Engineering in PDF only on Docsity!

-^ We are discussing methods to estimate the test error(or true risk) of a model essentially using the trainingdata.

PR NPTEL course – p.1/

-^ We are discussing methods to estimate the test error(or true risk) of a model essentially using the trainingdata. •^ We discussed cross-validation which is a very popularmethod for this.

PR NPTEL course – p.2/

-^ The final cross-validation estimate is the average oferrors of each learnt model on data points not usedfor training that model.

PR NPTEL course – p.4/

-^ The final cross-validation estimate is the average oferrors of each learnt model on data points not usedfor training that model.

n∑ 1 e= cv n i=

−ρ(i)ˆ L( f (X)i

, y)i^ PR NPTEL course – p.5/

Bootstrap Methods^ •^ Bootstrap estimates provide another general methodfor estimating the generalization error.

PR NPTEL course – p.7/

Bootstrap Methods^ •^ Bootstrap estimates provide another general methodfor estimating the generalization error.^ •^ The idea in bootstrap is to generate many training setsby sampling with replacement from the given data.

PR NPTEL course – p.8/

Bootstrap Methods^ •^ Bootstrap estimates provide another general methodfor estimating the generalization error.^ •^ The idea in bootstrap is to generate many training setsby sampling with replacement from the given data.^ •^ Given the original data of

n^ points, we generate

B

number of training sets, each of size

n, by randomly

sampling from the given data set. • Then we learn a model on each of the

B^ training sets.^ PR NPTEL course – p.10/

Bootstrap Methods^ •^ Bootstrap estimates provide another general methodfor estimating the generalization error.^ •^ The idea in bootstrap is to generate many training setsby sampling with replacement from the given data.^ •^ Given the original data of

n^ points, we generate

B

number of training sets, each of size

n, by randomly

sampling from the given data set. • Then we learn a model on each of the

B^ training sets.

-^ The final error estimate could be the average of errorsof all the models.

PR NPTEL course – p.11/

-^ Unlike in cross-validation, here we can have as manytraining sets as we want (all with size

n).

-^ However, they may all be very similar.

PR NPTEL course – p.13/

-^ Unlike in cross-validation, here we can have as manytraining sets as we want (all with size

n).

-^ However, they may all be very similar.b^ ˆ •^ Let^ f^ denote the model learnt using the

th^ bbootstrap

sample,^ b^ = 1

,^ · · ·^ , B.

PR NPTEL course – p.14/

-^ Here we are using the original data set as test datawhile for each

b^ ˆ b, the f is learnt using some of the

same data.

PR NPTEL course – p.16/

-^ Here we are using the original data set as test datawhile for each

b^ ˆ b, the f is learnt using some of the

same data. • Hence this bootstrap error estimate would not be verygood.

PR NPTEL course – p.17/

-^ Here we are using the original data set as test datawhile for each

b^ ˆ b, the f is learnt using some of the

same data. • Hence this bootstrap error estimate would not be verygood. • As an example, consider a problem where the classlabel is independent of the feature vector. • Then the true error rate is

0.^5 (under 0–1 loss).

PR NPTEL course – p.19/

-^ Here we are using the original data set as test datawhile for each

b^ ˆ b, the f is learnt using some of the

same data. • Hence this bootstrap error estimate would not be verygood. • As an example, consider a problem where the classlabel is independent of the feature vector. • Then the true error rate is

0.^5 (under 0–1 loss).

-^ Suppose we use the 1-nearest neighbour as ourclassifier.

PR NPTEL course – p.20/