<aside> 💡
What is classification?
Turning input features into a category (class). Examples: sentiment (+ / −), image labels, medical diagnosis.
</aside>
Common applications

<aside> 💡
A linear classifier is a broad category of algorithms that make a classification decision based on a linear combination of the features.
</aside>
$$ \begin{align*}
\text{score}(x) &= w_0 + w_1 x_1 + \dots + w_p x_p = \mathbf{w}^\top \mathbf{x}
\end{align*} $$
Decision rule:
$$ \begin{align*} \hat{y} &= \begin{cases} +1 & \text{if } \text{score}(x) \ge 0 \ -1 & \text{if } \text{score}(x) < 0 \end{cases} \end{align*} $$