Which practice keeps an experiment comparable when you test two model variants?
- Exam domain
- Experimentation25% of the exam
- Difficulty
- Easy
- 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: Assist in developing and testing multimodal AI models.
Assisting with model development means running fair, repeatable experiments.
Why C is the answer
Change one factor at a time, fix seeds and log every setting
Changing one factor at a time, with fixed seeds and logged settings, lets you attribute a difference to the change rather than to noise or a different setup.
Remember: Change one thing, fix seeds, log everything.
How it works
Controlled experiments vary one factor, fix randomness and track settings so results can be compared and reproduced.
In detail
- One change at a time.
- Fix seeds and log settings.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Keep no records, since the final model is what mattersWrong
Without records results cannot be reproduced.
B. Change the data, the model and the seed together to save timeWrongMost tempting
Several changes at once hide which one mattered.
Why it tempts: Batching changes feels efficient.
C. Change one factor at a time, fix seeds and log every settingRight
Change one thing, fix seeds, log everything.
D. Compare each variant on whichever test set flatters it mostWrong
Different test sets make results incomparable.
Use case
An illustrative scenario, not a real incident.
Illustrative: a team logs every run in an experiment tracker and finds a gain came from a data fix, not the new layer.
See it in different ways
flowchart LR S0["State the hypothesis"] --> S1["Fix seed and data"] --> S2["Change one factor"] --> S3["Run and log"] --> S4["Compare"]
How to read this chart
- Read it in order: State the hypothesis, then Fix seed and data, then Change one factor, then Run and log, then Compare.
mindmap
root(("Run log"))
n1["Inputs"]
n2["Dataset version"]
n3["Seed"]
n4["Model"]
n5["Architecture"]
n6["Hyperparameters"]
n7["Outputs"]
n8["Metrics"]
n9["Checkpoints"]How to read this chart
- The centre is "Run log".
- "Inputs" covers "Dataset version", "Seed".
- "Model" covers "Architecture", "Hyperparameters".
- "Outputs" covers "Metrics", "Checkpoints".
Related questions
Learn more
- Our lesson: Experiments, data quality and analysis
- Practise Experimentation questions in the mock exam
- Source: MLflow documentation
- Source: Common pitfalls and recommended practices (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