Beginner Topic 3 of 51 AI & Machine Learning
Supervised Learning
Learning from labeled examples to predict outputs.
How it works
Supervised learning trains a model on labeled examples, input features paired with the correct output, so it can predict outputs for new inputs. Classification predicts categories such as spam or not spam, and regression predicts continuous values such as house price. Training minimizes a loss function measuring the difference between predictions and labels, and algorithms include linear models, trees, support vector machines, ensembles and neural networks.
Step-by-step walkthrough
- Each training example has an input and the right answer.
- The model adjusts to reduce its mistakes.
- For a new input it predicts a label or value.
- The error is measured against the truth.
- Classification predicts categories and regression predicts numbers.
Where it is used
Email filtering, credit scoring, medical diagnosis, image recognition, speech recognition and demand forecasting are classic supervised tasks.
Common pitfall
Labels are expensive and may be noisy or biased, and the model learns whatever relationships exist in them, including unwanted ones. Class imbalance makes accuracy misleading. Overfitting memorizes training data. Use a held-out test set, appropriate metrics, cross-validation and check for data leakage from features that would not be available at prediction time.
Where it fits in the course
Supervised Learning is topic 3 of 51 in AI & Machine Learning, rated Beginner. It follows Machine Learning Overview. The next topic is Unsupervised Learning.
Practice and explore
- Open the interactive lesson, with a mini quiz.
- Take the AI & Machine Learning quiz.
How to study this topic
- Read the explanation above and restate the definition in your own words.
- Open the interactive lesson and answer its mini quiz.
- Read the common pitfall, then write a short example that avoids it.
- Check your understanding in the AI & Machine Learning quiz, and revisit the topic if you miss a question.
Frequently asked questions
What is Supervised Learning?
Where do people use Supervised Learning?
What is the most common mistake with Supervised Learning?
What should I learn before this topic?
How can I practice it?
Is Supervised Learning hard to learn?
How long does it take to learn Supervised Learning?
Which topics are related to Supervised Learning?
What should I study after Supervised Learning?
Related topics
- Machine Learning Overview (AI & Machine Learning)
- Unsupervised Learning (AI & Machine Learning)
- What is Artificial Intelligence (AI & Machine Learning)
- Reinforcement Learning Basics (AI & Machine Learning)
- Federated Learning (Emerging & Frontier Topics)