Pertanyaan:
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 module question 2 dengan baik dan benar
Bukti:
1. What is the key difference between supervised and unsupervised learning? Provide an example for each.
Jawab: Supervised learning is a type of machine learning where the model learns from data that already has labels or known answers. The model uses these examples to learn how to make predictions when given new data. For example, an email system can be trained using emails labeled as “spam” or “not spam” so that it can identify whether a new email is spam.
Unsupervised learning, on the other hand, works with data that does not have predefined labels or answers. The model tries to find patterns, groups, or relationships within the data by itself. For example, a shopping platform can use unsupervised learning to group customers based on their purchasing behavior without being told in advance which group each customer belongs to.
2. What is “overfitting” in a machine learning model, and why is it a problem?
Jawab: Overfitting is a condition where a machine learning model learns the training data too closely, including details or noise that are not important. As a result, the model may perform very well on the training data but perform poorly when it is given new data that it has never seen before.
Overfitting is a problem because a model should be able to recognize patterns and make accurate predictions on new data. For example, a model trained to distinguish between cats and dogs may be very accurate on the training images but struggle to recognize new images. Therefore, overfitting can reduce the model’s ability to generalize and make reliable predictions.
3. Describe the three main components of reinforcement learning: agent, environment, and reward.
Jawab: The three main components of reinforcement learning are the agent, environment, and reward. The agent is the learner or decision-maker that takes actions to achieve a specific goal. The environment is the situation or system in which the agent operates and responds to the agent’s actions. For example, in a game, the agent can be the player or AI character, while the environment is the game world.
The reward is the feedback that the agent receives after taking an action. A positive reward encourages the agent to repeat actions that lead to good results, while a negative reward discourages actions that lead to poor results. Through repeated interaction with the environment and feedback from rewards, the agent learns which actions are more likely to achieve its goal.
4. How does a training dataset differ from a testing dataset, and why is this separation important? Jawab: A training dataset is the data used to teach a machine learning model to recognize patterns and make predictions. The model learns from this data and adjusts its parameters based on the examples it receives. In contrast, a testing dataset is separate data that the model has not seen during training and is used to evaluate how well the model performs on new data.
