Module Question 3
- What is the key difference between supervised and unsupervised learning? Provide an example for each.
- What is “overfitting” in a machine learning model, and why is it a problem?
- Describe the three main components of reinforcement learning: agent, environment, and reward.
- How does a training dataset differ from a testing dataset, and why is this separation important?
the answer- Supervised vs. Unsupervised Learning:
Supervised learning uses labeled data to make predictions. Example: predicting house prices. Unsupervised learning uses unlabeled data to find patterns. Example: grouping customers by shopping behavior. - Overfitting:
Overfitting happens when a model learns the training data too closely, including its noise. It becomes less accurate when given new data. - Reinforcement Learning:
- Agent: The learner that makes decisions.
- Environment: The world where the agent acts.
- Reward: Feedback that tells the agent whether its action was good or bad.
- Training vs. Testing Dataset:
A training dataset is used to teach the model, while a testing dataset is used to evaluate its performance on new data. This separation helps check whether the model can generalize well.
- Supervised vs. Unsupervised Learning:
