Your test set images were taken from the same videos as training images, just different frames. Test accuracy is excellent. What is the problem?
- Exam domain
- Experimentation25% of the exam
- Difficulty
- Hard
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Experimentation (25% of the exam)
Objective in the exam guide: Test AI models to ensure their accuracy and effectiveness.
Leakage is a classic reason models fail after launch.
Why A is the answer
Leakage: near-duplicate frames inflate test scores
Frames from the same video are near duplicates, so the model sees almost the same images in training and test. Split by video to measure generalization.
Remember: Split by group to avoid leakage.
How it works
Effective model testing requires test data independent of training data; grouped data must be split by group.
In detail
- Split by group, not by item.
- Near duplicates leak information.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Leakage: near-duplicate frames inflate test scoresRight
Split by group to avoid leakage.
B. The model is underfittingWrong
High scores point the other way.
C. There is no problem; frames are independentWrongMost tempting
Adjacent frames are highly correlated.
Why it tempts: Different frames look like different samples.
D. The test set is too smallWrong
Size is not the issue described.
Use case
An illustrative scenario, not a real incident.
Illustrative: splitting by video drops accuracy from 98 to 81 percent, the honest number.
See it in different ways
flowchart TD
Q{"Are items grouped videos, patients, users ?"}
Q -->|"Yes"| A0["Split by group"]
Q -->|"No"| A1["Random split"]How to read this chart
- At "Are items grouped videos, patients, users ?": if "Yes", go to "Split by group"; if "No", go to "Random split".
stateDiagram-v2 state "Great test score" as s0 state "Suspicion" as s1 state "Leak found" as s2 state "Honest score" as s3 [*] --> s0 s0 --> s1: too good s1 --> s2: shared videos s2 --> s3: split by video s3 --> [*]
How to read this chart
- It starts at "Great test score".
- From "Great test score", "too good" moves it to "Suspicion".
- From "Suspicion", "shared videos" moves it to "Leak found".
- From "Leak found", "split by video" moves it to "Honest score".
- It ends at "Honest score".
Related questions
Learn more
- Our lesson: Experiments, data quality and analysis
- Practise Experimentation questions in the mock exam
- Source: Common pitfalls and recommended practices (scikit-learn)
- Source: Cross-validation (scikit-learn)
- Cross-validation (scikit-learn)
- Metrics and scoring (scikit-learn)
- Common pitfalls and recommended practices (scikit-learn)
- Grad-CAM: Visual Explanations from Deep Networks (arXiv)
- Matplotlib documentation