Supervised Learning
Supervised Learning is the most mature and most widely applied paradigm in machine learning. Its core idea is straightforward: show the machine a large set of paired "question + correct answer" samples, let it work out the rule that maps questions to answers, and then apply that rule to new questions it has never seen.
An Intuitive Way to Think About It
It is like a student working through a workbook that already has the answers. After doing hundreds of "1+1=? Answer: 2" problems, the student can naturally work out 4 for "2+2=?". That is what supervised learning does: it works backward from known answers to the underlying rule.
Two Typical Tasks
- Classification: the output is a discrete category. For example, judging whether an email is spam, or recognizing whether a picture shows a cat or a dog.
- Regression: the output is a continuous value. For example, predicting house prices or tomorrow's temperature.
Key Elements
- Training data: must carry labels, which is where the word "supervised" comes from
- Loss function: measures how far predictions are from the true answers
- Optimization: parameters are continually adjusted by gradient descent so the loss gets smaller
Common Algorithms
Linear regression, logistic regression, decision trees, random forests, support vector machines (SVM), and various neural networks. Deep learning is in essence a powerful implementation of supervised learning.
Strengths and Limitations
Strengths: stable results, relatively good interpretability, and a mature evaluation system (accuracy, recall, F1).
Limitations: heavy dependence on labeled data. Labeling is costly, and if the training data is biased, the model will learn that bias.
Typical Applications
Face recognition, medical imaging diagnosis, credit scoring, speech recognition, machine translation (in its early days), and OCR text recognition.