y_pred w0 + e * x0 w1 + e * x1 w2 + e * x2 1 0 1 0 0 0

NAME:
Input
Output
Features
Weights
Label
Multiplication
Sum
Classification
if sum > 0 then 1 else 0
Error (e)
Final weights
x0
x1
x2
y
w0
w1
w2
x0 * w0
x1 * w1
x2 * w2
y - y_pred w0 + e * x0 w1 + e * x1 w2 + e * x2
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
1
1
1
1
0
1
1
0
1
1
1
0
1
1
2
1
-1
1
0
0
1
1
0
1
1
0
0
1
0
0
1
1
0
1
0
0
1
0
1
0
1
0
0
1
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1
1
0
1
0
1
1
1
1
0
1
1
0
1
1
0
1