ET4248E Chap6 Nonlinear Model and SVM
ET4248E Chap6 Nonlinear Model and SVM
1
2
6.1. Nonlinear Models
3
• Classification
4
6.1.2. Using explicit nonlinear features
• Linear classification with nonlinear features
- Idea: moving to a new space where the examples may be linearly separable
nx
→ n' x
: x → x '
ℎ𝑤 𝑥 ′ = 𝑤 𝑇 𝑥 ′
5
• Example
𝑥 ∈ ℝ2 → 𝑥 ′ ∈ ℝ5
6
• Linear regression with nonlinear features
- Idea: moving to a new space where the examples may be linearly separable
nx
→ n' x
: x → x '
ℎ𝑤 𝑥 ′ = 𝜎(𝑤 𝑇 𝑥 ′ )
7
• Example
𝑥 ∈ ℝ2 → 𝑥 ′ ∈ ℝ5
8
- So great, it seems that we are done with this lecture, right?
We know how to perform linear and nonlinear regression/classification
- But what happens if we have many features
9
- More generally, for a choice of degree 𝑑 and an input vector with 𝑛𝑥 features
then the feature transformation will lead to
10
• Using another basic function
- Previous examples show the way of using the
polynomial features i.e. a polynomial basis
function
- Could also use alternative basis function such
as the radial basis function (RBF)
11
- Complexity:
If we assume we make a uniform grid over the
input space with 𝑑 centers along each
dimension, then
12
6.2. Support Vector Machine (SVM)
6.2.1. Introduction
13
14
15
16
17
• Example
18
19