You compare two models on a small labelled dataset and want a reliable estimate of how each will generalize. What should you use?
- Exam domain
- Core Machine Learning and AI Knowledge20% of the exam
- Difficulty
- Easy
- In this mock
- 10 questions on this domainPractise this domain
Why the exam asks this
Core Machine Learning and AI Knowledge (20% of the exam)
Objective in the exam guide: Apply machine learning fundamentals (feature engineering, model comparison, cross-validation).
Model comparison is a basic skill the exam assumes.
Why A is the answer
K-fold cross-validation, comparing mean and spread
K-fold cross-validation trains and evaluates on several splits, so the comparison does not depend on one lucky split. Compare the mean and the spread across folds.
Remember: Compare models with cross-validation, not one split.
How it works
Machine learning fundamentals include feature engineering, fair model comparison and cross-validation.
In detail
- Small data needs repeated splits.
- Training accuracy hides overfitting.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. K-fold cross-validation, comparing mean and spreadRight
Compare models with cross-validation, not one split.
B. One random split, keeping whichever model scores higherWrongMost tempting
One split can mislead on small data.
Why it tempts: A single split is quick and often looks decisive.
C. Accuracy on the training setWrong
Training scores do not show generalization.
D. Whichever model has more parametersWrong
Size does not predict generalization.
Use case
An illustrative scenario, not a real incident.
Illustrative: with 2,000 labelled images, 5-fold validation shows one model is better on average but much less stable.
See it in different ways
flowchart LR S0["Split into K folds"] --> S1["Train on K-1"] --> S2["Test on the held-out fold"] --> S3["Repeat K times"] --> S4["Average the scores"]
How to read this chart
- Read it in order: Split into K folds, then Train on K-1, then Test on the held-out fold, then Repeat K times, then Average the scores.
flowchart TD
Q{"How much labelled data?"}
Q -->|"Small"| A0["K-fold cross-validation"]
Q -->|"Very large"| A1["Single held-out test set"]
Q -->|"Time series"| A2["Time-ordered splits"]How to read this chart
- At "How much labelled data?": if "Small", go to "K-fold cross-validation"; if "Very large", go to "Single held-out test set"; if "Time series", go to "Time-ordered splits".
Related questions
Learn more
- Our lesson: Deep learning foundations for multimodal models
- Practise Core Machine Learning and AI Knowledge questions in the mock exam
- Source: Cross-validation (scikit-learn)
- Source: Metrics and scoring (scikit-learn)
- Fundamentals of Deep Learning (NVIDIA DLI)
- PyTorch documentation
- Deep Residual Learning for Image Recognition (arXiv)
- Transfer learning tutorial (PyTorch)