The model first computes a score for an input by taking a weighted sum of features plus a bias.
This score is a single number that tells the model how “positive” or “negative” the input looks.
$$ \begin{align*} \text{score}(x) &= w_0 + w_1 x_1 + w_2 x_2 + \dots + w_p x_p \end{align*} $$
Here $x_i$ are the feature values and $w_i$ are the weights (coefficients).
![IMG_20250802_100407[1].jpg](attachment:4d5fb2c8-c09b-4de4-a617-30aa10f0d166:IMG_20250802_1004071.jpg)
Examples: