SLIDE 4 Multiclass Decision Rule
If we e hav ave e multiple e cl clas asses es:
weig ight vector for each class:
Score (activation) of a class y:
highe ghest st sc scor
Binary = multiclass where the negative class has weight zero
Learning: Multiclass Perceptron
Start with all we weights = = 0
Pick training examples one by one
Predi dict with current weights
If c correct: no change!
If wr wrong: lower score of wrong answer, raise score of right answer
Example: Multiclass Perceptron
BIAS : 1 win : 0 game : 0 vote : 0 the : 0 ... BIAS : 0 win : 0 game : 0 vote : 0 the : 0 ... BIAS : 0 win : 0 game : 0 vote : 0 the : 0 ...
Qu Question: What will the weights w be for each class after 3 updates? y1 = “p “politics”, x1 = “wi “win the vote” y2 = “p “politics”, x2 = “wi “win the election” y3 = “s “sports”, x3 = “wi “win the game” ”
Example: Multiclass Perceptron
BIAS : 1 win : 0 game : 0 vote : 0 the : 0 ... BIAS : 0 win : 0 game : 0 vote : 0 the : 0 ... BIAS : 0 win : 0 game : 0 vote : 0 the : 0 ...
Qu Question: What will the weights w be for each class after 3 updates? wpo
politics f(x1) = 0
wsp
sports f(x1) = 1
wte
tech f(x1) = 0 + 1 + 1 + 0 + 1 + 1
Pr Prediction: “s “sports” (wr (wrong)
1 1 1 1 f(x1) =
y1 = “p “politics”, x1 = “wi “win the vote” y2 = “p “politics”, x2 = “wi “win the election” y3 = “s “sports”, x3 = “wi “win the game” ”