After training, a model must be checked on testing data it has never seen. Testing on training data hides overfitting — the model memorises instead of learning, scoring well in practice but failing in real life.
Ch 7 · Evaluation
Study Notes
Exercise 1 of 4
Questions on this page
Chapter 7: Evaluation
Original LearnCBSEHub notes for CBSE Class 10 Artificial Intelligence Unit 7: why models are evaluated, the confusion matrix, and accuracy, precision, recall and F1 score with worked examples — with fill-in-the-blanks, MCQs and questions with answers.
Question 1
Why evaluate?
Answer
Question 2
The confusion matrix
Answer
Example: a model predicts whether a forest fire will occur.
| Reality: Yes | Reality: No | |
|---|---|---|
| Predicted: Yes | True Positive (TP) | False Positive (FP) |
| Predicted: No | False Negative (FN) | True Negative (TN) |
Question 3
The four metrics
Answer
- Accuracy = (TP + TN) ÷ total — overall correctness.
- Precision = TP ÷ (TP + FP) — of all the “yes” predictions, how many were right.
- Recall = TP ÷ (TP + FN) — of all real “yes” cases, how many were caught.
- F1 score = 2 × Precision × Recall ÷ (Precision + Recall) — balance of both; best when it is close to 1.
Question 4
Which metric matters?
Answer
When a False Negative is costly (missing a fire, a disease, a virus outbreak), focus on recall. When a False Positive is costly (marking an important email as spam, or a mining model wrongly predicting treasure), focus on precision. Accuracy can mislead when one class is rare.