Assignment 3 – BD107 – Artificial Intelligence – Muhammad Yunus Saputra

Module Question 3

  1. What is the key difference between supervised and unsupervised learning? Provide an example for each.
  2. What is “overfitting” in a machine learning model, and why is it a problem?
  3. Describe the three main components of reinforcement learning: agent, environment, and reward.
  4. How does a training dataset differ from a testing dataset, and why is this separation important?

Status: 100% sudah tercapai

Keterangan: saya sudah mengerjakan essay ini dengan baik dan benar

Bukti:

Answers:

1.The main difference is whether the training data has labeled answers.

-Supervised learning uses labeled data, meaning the model learns from examples where the correct output is already provided.

Example: Training a model with pictures labeled “cat” and “dog” so it can classify new pictures.

-Unsupervised learning uses data without predefined labels. The model tries to discover patterns or groups by itself.

Example: Grouping customers into different segments based on their purchasing behavior.

 

2.Overfitting happens when a model learns the training data too closely, including its noise and unusual details, instead of learning general patterns.

As a result, the model may perform very well on training data but poorly on new, unseen data. This is a problem because the goal of machine learning is to create a model that can generalize to new situations.

 

For example, a model might memorize the exact characteristics of the training images instead of learning general features that distinguish cats from dogs.

 

3.The three main components are:

-Agent: The system that makes decisions or takes actions.

-Environment: The world or situation in which the agent operates.

-Reward: Feedback given to the agent after an action, indicating whether the action was beneficial or undesirable.

 

For example, in a game, the agent is the player-controlled AI, the environment is the game world, and the reward could be points for completing a successful action. The agent learns to choose actions that maximize its rewards over time.

 

4.-A training dataset is the data used to teach the machine learning model. The model analyzes this data and adjusts its parameters to learn patterns.

-A testing dataset contains separate data that the model has not used during training. It is used to evaluate how well the model performs on new, unseen examples.

 

Keeping the datasets separate is important because it provides a more realistic measure of the model’s ability to generalize. If the same data were used for both training and testing, the evaluation could make the model appear more effective than it actually is.


Previous Post Previous Post
Newer Post Newer Post

Leave a comment