Machine Learning
Linear Models
1
Linear Models Machine Learning 1 Checkpoint: The bigger picture - - PowerPoint PPT Presentation
Linear Models Machine Learning 1 Checkpoint: The bigger picture Supervised learning: instances, concepts, and hypotheses Specific learners Learning Hypothesis/ Labeled algorithm Model h Decision trees data New example
1
2
Learning algorithm Labeled data Hypothesis/ Model h h
New example Prediction Questions?
3
Questions?
Learning algorithm Labeled data Hypothesis/ Model h h
New example Prediction
4
Questions?
Learning algorithm Labeled data Hypothesis/ Model h h
New example Prediction
5
Questions?
Learning algorithm Labeled data Hypothesis/ Model h h
New example Prediction
6
7
8
9
– We were looking at the space of all Boolean functions – Instead choose a hypothesis space that is smaller than the space of all functions
negations)
!
10
11
Suppose this our training set and we have to separate the blue circles from the red triangles
12
Suppose this our training set and we have to separate the blue circles from the red triangles Curve: A
13
Suppose this our training set and we have to separate the blue circles from the red triangles Curve: A Line: B
14
Suppose this our training set and we have to separate the blue circles from the red triangles Curve: A Line: B Blue Red
15
Suppose this our training set and we have to separate the blue circles from the red triangles Think about overfitting Which curve runs the risk of
Simplicity versus Accuracy Curve: A Line: B Blue Red
16
x F(x) Linear regression might make smaller errors on new points
17
x F(x) Curve: A Linear regression might make smaller errors on new points
18
x F(x) Line: B Curve: A Linear regression might make smaller errors on new points
19
20
21
22
23
"
24
"
25
"
26
27
An illustration in two dimensions
28
29
30
An illustration in two dimensions
31
An illustration in two dimensions
32
[w1 w2] An illustration in two dimensions
33
We only care about the sign, not the magnitude [w1 w2] An illustration in two dimensions
34
In higher dimensions, a linear classifier represents a hyperplane that separates the space into two half-spaces
We only care about the sign, not the magnitude [w1 w2] Questions? An illustration in two dimensions
35
Questions?
36
Questions?
37
Questions?
38
Questions? Increases dimensionality by one Equivalent to adding a feature that is a constant: always 1
39
Questions? Increases dimensionality by one Equivalent to adding a feature that is a constant: always 1
40
Questions? Increases dimensionality by one Equivalent to adding a feature that is a constant: always 1
41