































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Classification Algorithm Training Data
Prediction Rule: Vector w How do you classify a test example x?
Goal: Given labeled data (xi, yi), i=1,..,n, where y is +1 or -1 , Find a vector w such that the corresponding hyperplane separates + from - What does ytwt, xt^ <^0 mean? When yt = 1, ytwt, xt^ <^0 means When yt = -1, ytwt, xt^ <^0 means
This means wt predicts the label of xt incorrectly Perceptron Algorithm:
γ = min x∈S |w, x| x min cosine of angle between w and x, for any x in S
γ = min x∈S |w, x| x min cosine of angle between w and x, for any x in data
2
∗ = 1 then #mistakes made by perceptron is at most (^1) /γ 2
and if xi^ = 1 for all xi in the training data,
Fact 1. If there is a mistake at round t, wt+1, w ∗ ≥ wt, w ∗ + γ
∗ = 1 then #mistakes made by perceptron is at most (^1) /γ 2
and if xi^ = 1 for all xi in the training data,
Fact 1. If there is a mistake at round t, wt+1, w ∗ ≥ wt, w ∗ + γ wt+1, w ∗ = wt + ytxt, w ∗ = wt, w ∗ + ytxt, w ∗ By definition of margin, ytxt, w ∗ ≥ γ Fact 2. If there is a mistake at round t, wt+1 2 ≤ wt 2
∗ = 1 then #mistakes made by perceptron is at most (^1) /γ 2
and if xi^ = 1 for all xi in the training data,
Fact 1. If there is a mistake at round t, wt+1, w ∗ ≥ wt, w ∗ + γ wt+1, w ∗ = wt + ytxt, w ∗ = wt, w ∗ + ytxt, w ∗ By definition of margin, ytxt, w ∗ ≥ γ Fact 2. If there is a mistake at round t, wt+1 2 ≤ wt 2
∗ = 1 then #mistakes made by perceptron is at most (^1) /γ 2
and if xi^ = 1 for all xi in the training data,
Fact 1. If there is a mistake at round t, wt+1, w ∗ ≥ wt, w ∗ + γ Fact 2. If there is a mistake at round t, wt+1 2 ≤ wt 2
∗ = 1 wt ≤ √ M then #mistakes made by perceptron is at most (^1) /γ 2
and if xi^ = 1 for all xi in the training data,
Fact 1. If there is a mistake at round t, wt+1, w ∗ ≥ wt, w ∗ + γ Fact 2. If there is a mistake at round t, wt+1 2 ≤ wt 2
∗ = 1 wt ≤ √ M γM ≤ wt, w ∗ ≤ wt ≤ √ M M ≤ 1 γ 2 Solving, then #mistakes made by perceptron is at most (^1) /γ 2
and if xi^ = 1 for all xi in the training data,