














































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















































TTIC 31020: Introduction to Machine Learning
Instructor: Greg Shakhnarovich
TTI–Chicago
October 4, 2010
TA: Feng Zhao
5 homework assignments (1.5-2 weeks apart)
Final during finals week
My office hours: by e-mail appointment
Feng’s office hours: Friday 3-5pm
An observation consists of an input x paired with label y.
We are given a set of N observations (xi, yi), i = 1,... , N
Example: measurements (possibly noisy!) of barometric pressure x vs. water boiling point y (^) in.
Does it make sense to use learning here?
Two goals in mind:
1 Explain the data (traditional statistics)
2 Make predictions (emphasized in machine learning)
We will proceed in two steps: 1 Choose a model class of functions
Two goals in mind:
1 Explain the data (traditional statistics)
2 Make predictions (emphasized in machine learning)
We will proceed in two steps: 1 Choose a model class of functions 2 Design a fitting criterion, to guide selection of a function from the class. Let’s start with (almost) the simplest model class: linear functions.
We want to fit a linear function to an observed set of points X = [x 1 ,... , xN ] with associated labels Y = [y 1 ,... , yN ].
(xi, yi)
We want to fit a linear function to an observed set of points X = [x 1 ,... , xN ] with associated labels Y = [y 1 ,... , yN ].
(xi, yi)
(^2 2 ) min (^2) ++ + + + + +
(^2 )
We want to fit a linear function to an observed set of points X = [x 1 ,... , xN ] with associated labels Y = [y 1 ,... , yN ].
(xi, yi)
(^2 2 ) min (^2) ++ + + + + +
(^2 )
x 0
General form: f (x; w) = w 0 + w 1 x 1 +... + wdxd
1D case (X = R): a line
X = R^2 : a plane
Hyperplane in general, d-D case.
We will mostly stick to these throughout the course:
xi the i-th data point in X (column vector)
Often X ≡ Rd, so that [x( 1 i ),... , x( di )]T
yi the label of the i-th data point; yi ∈ Y
x 0 , y 0 a single test point and its (unknown) label
X the N × d data matrix where i-th row is xTi
y the label vector y = [y 1 ,... , yN ]T
We consider a parametric function f (x; w) Linear function: f (x; w) = wT^ x
The empirical loss of function y = f (x; w) on a set X:
L(w, X) =
i=
L (f (xi; w), yi)
LSQ minimizes the empirical loss for squared loss L.
We care about accuracy of predicting labels for new examples. Why/when does empirical loss minimization help us achieve that?
Fundamental assumption: example x/label y are drawn from an joint probability distribution p(x, y).
Data are i.i.d.: same (unknown!) distribution for all pairs (x, y) in both training and test data.
We can measure the empirical loss on training set
L(w, X) =
i=
L (f (xi; w), yi)
The ultimate goal is to minimize the expected loss, also known as risk:
R(w) = E(x 0 ,y 0 )∼p(x,y) [L (f (x 0 ; w), y 0 )]
Two steps:
Select a restricted class H of hypotheses f : X → Y
∑d i=1 wixi Select a hypothesis f ∗^ ∈ H based on training set (X, Y ) current approach: minimize empirical loss
w∗^ = argmin w
i=
(yi − w 0 −
∑^ d
j=
wj x( ji ))^2
How do we find w∗^ = [w∗ 0 , w 1 ∗,... , w d∗]T^?
We need to minimize w.r.t. w
L(w, X) = L(w) =
i=
(yi − f (xi; w))^2