Summary CS559 Machine Learning Support Vector Machine
CS559 Machine Learning Support Vector Machine CS559 Machine Learning Support Vector Machine Tian Han Department of Computer Science Stevens Institute of Technology Week 14 • Linear classifier, large margin, SVM • Non-separable case, slack variable • Non-linearity, kernels Linear classifier, large margin, SVM • Linear classifiers construct linear decision boundaries(hyperplanes) that try to separate the data into different classes as well as possible. • Linear classifiers construct linear decision boundaries(hyperplanes) that try to separate the data into different classes as well as possible. • Classification Rule (the Perceptron model): Input: x ∈ Rd Output: sign(wTx + b) • Linear classifiers construct linear decision boundaries(hyperplanes) that try to separate the data into different classes as well as possible. • Classification Rule (the Perceptron model): Input: x ∈ Rd Output: sign(wTx + b) • The classifier computes a linear combination of the input features, and return the sign. • Hyperplane L: f (x) = (wTx + b) = 0, when x ∈ R2, f (x) is a line. • Consider any two points x1, x2, lying on hyperplane L: wT x1 + b = 0 wT x2 + b = 0 → w (x1 − x2) = 0 • Consider any two points x1, x2, lying on hyperplane L: wT x1 + b = 0 wT x2 + b = 0 → w (x1 − x2) = 0 • Since wT(x1 − x2) = w • (x1 − x2) = 0, the two vectors w and x1 − x2 are orthogonal vectors. w∗ = w ||w|| is the vector normal to the surface of L. • Consider any two points x1, x2, lying on hyperplane L: wT x1 + b = 0 wT x2 + b = 0 → w (x1 − x2) = 0 • Since wT(x1 − x2) = w • (x1 − x2) = 0, the two vectors w and x1 − x2 are orthogonal vectors. w∗ = w ||w|| is the vector normal to the surface of L. • Note 1: All vectors here are column vectors. • Consider any two points x1, x2, lying on hyperplane L: wT x1 + b = 0 wT x2 + b = 0 → w (x1 − x2) = 0 • Since wT(x1 − x2) = w • (x1 − x2) = 0, the two vectors w and x1 − x2 are orthogonal vectors. w∗ = w ||w|| is the vector normal to the surface of L. • Note 1: All vectors here are column vectors. • Note 2: Dot product (inner product) of two vectors a • b = aTb = ||a|| × ||b|| × cos α where α is the angle between a and b.
Document information
- Uploaded on
- May 23, 2022
- Number of pages
- 109
- Written in
- 2021/2022
- Type
- Summary