Lecture 4
Lecture 4
Test Set
Error or
Training Set
ML Algo. 1 Model 1
Error or Error2
Validation Set
ML Algo. 2 Model 2
average error
Model s
Selected Final
model Error
: : :
: : :
: : :
: : :
Error or Errorq
ML Algo. q Model q
average error
ng
●
tti
model fit over datasets, i.e., prediction
Low Bias
rfi
deviates from the value of the
ve
underlying target function.
High Bias
g
tin
fit
er
nd
U
Expected Prediction Error and Bias-
variance Tradeoff
-1 +1
Linear Regression
● Linear Models are used in SVM, Deep learning, and etc...
● Defining a rule is not always feasible.
● How to learn their weights (or unknowns) from data?
● Formulate learning as optimization problem w.r.t. weights
Parameteric ML
Equation of line:
y = mx +c
c can be considered as
bias then, m is the
weight.
For simplicity, we
consider the following:
●
w = [m c]T
●
x = [x 1]T
1-D pictorial example of linear regression
Linear Regression
● Squared loss chosen
for simplicity.
● The best w minimizes
training error w.r.t. w
Linear Regression
●
(XTX) may not be invertible
● Overfitting: Based solely on minimizing the training error