Binary classification with two features \(\{ x_1, x_2 \}\) as input and two classes \(\{ 0, 1 \}\) as output.
$$ z = x_1 w_1 + x_2 w_2 + b $$ $$ \hat{y} = \begin{cases} 1 & \text{if} \space z \geq 0 \\ 0 & \text{otherwise} \\ \end{cases} $$
Classification with two features \(\{ x_1, x_2 \}\) as input and three classes \(\{ 0, 1, 2 \}\) as output.
Using one-versus-rest (OvR).