Codele / Machine learning: one neuron to deep learning
Classification
Sometimes we want a label, not a number: spam or not spam, cat or dog. A line splits the dots into two sides, and the sigmoid says how sure the model is.
- Classification predicts a label (spam or not spam) instead of a number.
- The model is a line, the decision boundary: a score from weights times inputs plus a bias. Positive on one side, negative on the other.
- The sigmoid turns the score into a chance between 0 and 1. Near 0.5 means unsure.
- A new dot gets the label of the side it lands on, and the chance shows how sure the model is.
- Models make mistakes. A confident wrong answer is still wrong, so we always test them.
Loading the playable lesson…