Learning From Data Lecture 10 Nonlinear Transforms
The Z-space Polynomial transforms Be careful
- M. Magdon-Ismail
CSCI 4100/6100
Learning From Data Lecture 10 Nonlinear Transforms The Z -space - - PowerPoint PPT Presentation
Learning From Data Lecture 10 Nonlinear Transforms The Z -space Polynomial transforms Be careful M. Magdon-Ismail CSCI 4100/6100 recap: The Linear Model linear in x : gives the line/hyperplane separator s = w t x linear in w : makes
The Z-space Polynomial transforms Be careful
CSCI 4100/6100
recap: The Linear Model
linear in x: gives the line/hyperplane separator
linear in w: makes the algorithms work
Credit Analysis Amount
Approve
Probability
Perceptron Logistic Regression Linear Regression Classification Error PLA, Pocket,.. . Cross-entropy Error Gradient descent Squared Error Pseudo-inverse
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 2 /18
Limitations of linear − →
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 3 /18
Change the features − →
no additional effect beyond Y = 3;
no additional effect below Y = 0.3.
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 4 /18
‘Transform’ your features − →
z1 Y
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 5 /18
Feature transform I: Z-space − →
x1 x2
z1 = x2
1
z2 = x2
2
1
2
=
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 6 /18
Feature transform II: classify in Z-space − →
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 7 /18
Feature transform III: bring back to X-space − →
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 8 /18
Summary of nonlinear transform − →
d
d(x)
=
d
d
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 9 /18
Generalization − →
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 10 /18
Many possibilities to choose from − →
x1 x2
1 + x2 2 = 0.6
z1 = (x1 + 0.05)2 z2 = x2 z1 = x2
1
z2 = x2
2
z1 = x2
1 + x2 2 − 0.6
This is called data snooping: looking at your data and tailoring your H.
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 11 /18
Many possibilities to choose from − →
x1 x2
1 + x2 2 = 0.6
z1 = (x1 + 0.05)2 z2 = x2 z1 = x2
1
z2 = x2
2
z1 = x2
1 + x2 2 − 0.6
This is called data snooping: looking at your data and tailoring your H.
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 12 /18
Choose before looking at data − →
= x −
1
2
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 13 /18
The polynomial transform − →
1, x1x2, x2 2),
1, x1x2, x2 2, x3 1, x2 1x2, x1x2 2, x3 2),
1, x1x2, x2 2, x3 1, x2 1x2, x1x2 2, x3 2, x4 1, x3 1x2, x2 1x2 2, x1x3 2, x4 2),
Higher degree gives lower (even zero) Ein but worse generalization.
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 14 /18
Be carefull with nonlinear transforms − →
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 15 /18
Insist on Ein = 0 − →
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 16 /18
Digits data − →
Average Intensity Symmetry Average Intensity Symmetry
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 17 /18
Use the linear model! − →
Data snooping is hazardous to your Eout.
c A M L Creator: Malik Magdon-Ismail
Nonlinear Transforms: 18 /18