CS 6316 Machine Learning
Model Selection and Validation
Yangfeng Ji
Department of Computer Science University of Virginia
CS 6316 Machine Learning Model Selection and Validation Yangfeng Ji - - PowerPoint PPT Presentation
CS 6316 Machine Learning Model Selection and Validation Yangfeng Ji Department of Computer Science University of Virginia Overview Polynominals Polynomial regression (a) d 1 (b) d 3 (c) d 15 2 Boosting Adaboost combines T weak
Department of Computer Science University of Virginia
(a) d 1 (b) d 3 (c) d 15
2
T
3
λ
m
4
λ
m
λ with a small λ, then
λ
4
λ
m
λ with a small λ, then
λ
4
5
7
8
9
9
h′∈H
c
11
h′∈H
c
′ {hc1(x, S), . . . , hck(x, S)}, find the
h′∈H
′
11
h′∈H
c
′ {hc1(x, S), . . . , hck(x, S)}, find the
h′∈H
′
′
11
d {w0 + w1x + · · · + wdxd : w0, w1, . . . , wd ∈ R}
2
12
d {w0 + w1x + · · · + wdxd : w0, w1, . . . , wd ∈ R}
2
12
13
14
as training set
14
as training set
14
1: Input: (1) training set S; (2) set of parameter values Θ;
2: Partition S into S1, S2, . . . , Sk 3: for θ ∈ Θ do 4:
5:
6:
7:
k
i1 LSi(hi,θ)
8: end for 9: Output: the hypothesis hS(x) sign(T
t1 wtht(x))
15
′
16
′
Train Val Test
16
′
Fold 1 Fold 2 Fold 3 Fold 4 Fold 5 Test
16
18
◮ Enlarging it ◮ Reducing it ◮ Completely changing it ◮ Changing the parameters you consider [Shalev-Shwartz and Ben-David, 2014, Page 151]
18
◮ Enlarging it ◮ Reducing it ◮ Completely changing it ◮ Changing the parameters you consider
18
◮ Enlarging it ◮ Reducing it ◮ Completely changing it ◮ Changing the parameters you consider
18
19
h′∈H
20
h′∈H
20
h′∈H
20
h′∈H
20
21
◮ Get more data if possible, or reduce the hypothesis
space
21
(a)
Figure: Examples of learning curves [Shalev-Shwartz and Ben-David, 2014, Page 153].
22
(a) (b)
Figure: Examples of learning curves [Shalev-Shwartz and Ben-David, 2014, Page 153].
22
Mohri, M., Rostamizadeh, A., and Talwalkar, A. (2018). Foundations of machine learning. MIT press. Shalev-Shwartz, S. and Ben-David, S. (2014). Understanding machine learning: From theory to algorithms. Cambridge university press.
23