Supervised learning: learn from known answers
How learning from labeled examples, unlabeled data, or rewards leads to different capabilities, including classification, regression, and clustering. · foundational
Supervised learning learns from examples that pair input information with a known answer, called a label. For example, an email can be paired with its known category: unwanted or legitimate. These answers guide learning so the model can predict answers for new inputs.
Classification predicts a category, such as unwanted or legitimate. Regression predicts a numerical quantity, such as a delivery time. Both use labeled examples: a label can be a category or a measured number.
The distinction is what the answer means, not how it is written. Predicting category 1 or category 2 is still classification; predicting a delivery time of 25 minutes is regression because the number represents an amount.