Supervised learning is a type of machine learning where the model learns from labeled data. It means the input data comes with the correct answers, so the model can learn to predict the output for new data.
Click to reveal answer
beginner
Define unsupervised learning.
Unsupervised learning is when the model learns from data without labels. It tries to find patterns or groups in the data on its own, like grouping similar items together.
Click to reveal answer
beginner
What is reinforcement learning?
Reinforcement learning is a type of learning where an agent learns by trying actions and getting rewards or penalties. It learns to make decisions to get the most reward over time.
Click to reveal answer
beginner
Give a real-life example of supervised learning.
An example is teaching a child to recognize fruits by showing pictures with names. The child learns to identify fruits because they have the correct labels.
Click to reveal answer
beginner
How does unsupervised learning differ from supervised learning?
Unsupervised learning uses data without answers and finds hidden patterns, while supervised learning uses data with answers to learn how to predict outcomes.
Click to reveal answer
Which type of machine learning uses labeled data to learn?
AReinforcement learning
BUnsupervised learning
CSupervised learning
DNone of the above
✗ Incorrect
Supervised learning uses labeled data where the correct answers are known.
What does unsupervised learning mainly do?
APredict outcomes using labels
BFind patterns or groups in data without labels
CLearn by rewards and penalties
DUse labeled data to classify
✗ Incorrect
Unsupervised learning finds patterns or groups in data without any labels.
In reinforcement learning, how does the agent learn?
ABy trying actions and receiving rewards or penalties
BBy grouping similar data points
CBy following a fixed set of rules
DBy memorizing data labels
✗ Incorrect
Reinforcement learning involves learning through trial, error, and feedback in the form of rewards or penalties.
Which of these is NOT a type of machine learning?
AManual learning
BSupervised learning
CReinforcement learning
DUnsupervised learning
✗ Incorrect
Manual learning is not a machine learning type; the main types are supervised, unsupervised, and reinforcement learning.
Which type of learning would be best for grouping customers by buying habits without prior labels?
ANone of the above
BSupervised learning
CReinforcement learning
DUnsupervised learning
✗ Incorrect
Unsupervised learning is used to find groups or clusters in data without labels.
Explain the three main types of machine learning and give a simple example for each.
Think about how each type learns differently and what real-life situations match.
You got /4 concepts.
How does reinforcement learning differ from supervised and unsupervised learning in terms of feedback?
Focus on the kind of feedback each learning type receives.
You got /4 concepts.
Practice
(1/5)
1. Which type of machine learning uses labeled data to teach the model?
easy
A. Supervised learning
B. Unsupervised learning
C. Reinforcement learning
D. Deep learning
Solution
Step 1: Understand labeled data meaning
Labeled data means each example has a known answer or outcome.
Step 2: Match learning type with labeled data
Supervised learning uses labeled data to train models to predict outcomes.
Final Answer:
Supervised learning -> Option A
Quick Check:
Supervised = labeled data [OK]
Hint: Labeled data means supervised learning [OK]
Common Mistakes:
Confusing unsupervised with supervised
Thinking reinforcement uses labeled data
Mixing deep learning as a type here
2. Which of the following is the correct description of unsupervised learning?
easy
A. Learning from labeled data to predict outcomes
B. Finding patterns in data without labels
C. Learning actions to maximize rewards
D. Training deep neural networks
Solution
Step 1: Recall unsupervised learning definition
Unsupervised learning finds hidden patterns or groups in data without labels.
Step 2: Match options with definition
Finding patterns in data without labels correctly states it finds patterns without labels.
Final Answer:
Finding patterns in data without labels -> Option B
Quick Check:
Unsupervised = no labels [OK]
Hint: No labels means unsupervised learning [OK]
Common Mistakes:
Choosing supervised for unlabeled data
Confusing reinforcement with unsupervised
Thinking deep learning is a type of ML here
3. Consider this Python code snippet for a reinforcement learning agent:
Step 1: Identify the current action and reward mapping
The current_action is 'right'. The rewards dictionary maps 'right' to 1.
Step 2: Print the reward for 'right'
reward = rewards['right'] equals 1, so print outputs 1.
Final Answer:
1 -> Option D
Quick Check:
Reward for 'right' = 1 [OK]
Hint: Check dictionary key for current action [OK]
Common Mistakes:
Confusing keys and values in dictionary
Printing variable before assignment
Assuming default reward 0
4. The following code is intended to perform supervised learning but has an error:
data = [([1, 2], 0), ([3, 4], 1), ([5, 6], 0)]
features, labels = zip(*data)
model = SomeModel()
model.train(features, labels)
What is the likely error?
medium
A. Features and labels are not separated correctly
B. Data format is incorrect for supervised learning
C. Model class SomeModel is undefined
D. train method should be fit instead
Solution
Step 1: Check variable unpacking
features and labels are correctly unpacked from data using zip(*data).
Step 2: Identify model usage error
SomeModel is not defined anywhere, so creating model = SomeModel() causes an error.
Final Answer:
Model class SomeModel is undefined -> Option C
Quick Check:
Undefined class causes error [OK]
Hint: Undefined classes cause errors at instantiation [OK]
Common Mistakes:
Assuming train method is wrong without context
Thinking data unpacking is incorrect
Ignoring missing model definition
5. You want to build a system that learns to play a game by trying moves and getting points as feedback. Which type of machine learning should you use?
hard
A. Reinforcement learning
B. Supervised learning
C. Unsupervised learning
D. Clustering
Solution
Step 1: Understand the problem context
The system learns by trying moves and receiving points (rewards) as feedback.
Step 2: Match learning type to feedback-based learning
Reinforcement learning fits because it learns actions to maximize rewards from feedback.
Final Answer:
Reinforcement learning -> Option A
Quick Check:
Learning from rewards = Reinforcement [OK]
Hint: Learning from rewards means reinforcement learning [OK]
Common Mistakes:
Choosing supervised because of 'learning'
Confusing clustering with reinforcement
Ignoring feedback as reward signal
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.