You have budget for 30 training runs to tune learning rate, batch size and dropout. Which search usually finds a good setting most efficiently?
- Exam domain
- Performance Optimization10% of the exam
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why the exam asks this
Performance Optimization (10% of the exam)
Objective in the exam guide: Optimize the performance of AI models, including tuning hyperparameters.
Hyperparameter tuning is named in the objectives.
Why C is the answer
Random search over sensible ranges
Random search samples many distinct values of each parameter and often finds good settings with fewer runs than a full grid, which here would need 1,000 runs.
Remember: Random search beats grids on a tight budget.
How it works
Hyperparameter tuning searches settings such as learning rate and batch size with grid, random or Bayesian methods.
In detail
- Grids grow exponentially.
- Random search covers important parameters better.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Tuning only the random seedWrong
The seed is not a hyperparameter to optimize.
B. Picking values from another unrelated modelWrong
Other models' settings may not transfer.
C. Random search over sensible rangesRight
Random search beats grids on a tight budget.
D. A full grid with ten values per parameterWrongMost tempting
A 10 by 10 by 10 grid needs 1,000 runs.
Why it tempts: A grid feels thorough.
Use case
An illustrative scenario, not a real incident.
Illustrative: 30 random trials find a learning rate three times higher than the default that trains faster.
See it in different ways
flowchart LR S0["Set ranges"] --> S1["Sample settings"] --> S2["Train briefly"] --> S3["Keep the best"] --> S4["Refine"]
How to read this chart
- Read it in order: Set ranges, then Sample settings, then Train briefly, then Keep the best, then Refine.
mindmap
root(("Hyperparameter search"))
n1["Grid"]
n2["Every combination"]
n3["Random"]
n4["Samples ranges"]
n5["Bayesian"]
n6["Learns from past trials"]How to read this chart
- The centre is "Hyperparameter search".
- "Grid" covers "Every combination".
- "Random" covers "Samples ranges".
- "Bayesian" covers "Learns from past trials".