Which tuning method uses past trial results to choose the next hyperparameters?
- Exam domain
- Model Development31% of the exam
- Difficulty
- Medium
- In this mock
- 16 questions on this domainPractise this domain
Why the exam asks this
Model Development (31% of the exam)
Objective in the exam guide: Perform random or grid search or Bayesian search as a method for tuning hyperparameters
Random, grid and Bayesian search are named.
Why B is the answer
Bayesian search, such as Optuna's default TPE sampler
Bayesian approaches model how hyperparameters relate to the metric and pick promising trials. Grid and random search do not learn from past trials.
Remember: Bayesian search uses past trials.
How it works
Search methods differ in how they choose trials.
In detail
- Bayesian learns from trials.
- Grid is exhaustive; random is independent.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Random search, which samples independently each timeWrongMost tempting
Random search ignores results.
Why it tempts: Random search is efficient, but it does not learn.
B. Bayesian search, such as Optuna's default TPE samplerRight
Bayesian search uses past trials.
C. Manual guessingWrong
Guessing is not systematic.
D. Grid search, which tries every combination in a fixed orderWrong
Grid search ignores results.
Use case
An illustrative scenario, not a real incident.
Illustrative: Optuna finds a good learning rate in 40 trials where a grid would need 200.
See it in different ways
mindmap
root(("Tuning"))
n1["Grid"]
n2["Every combination"]
n3["Random"]
n4["Independent samples"]
n5["Bayesian"]
n6["Learns from trials"]How to read this chart
- The centre is "Tuning".
- "Grid" covers "Every combination".
- "Random" covers "Independent samples".
- "Bayesian" covers "Learns from trials".
flowchart TD
Q{"How large is the space?"}
Q -->|"Tiny"| A0["Grid"]
Q -->|"Large, cheap trials"| A1["Random"]
Q -->|"Large, costly trials"| A2["Bayesian"]How to read this chart
- At "How large is the space?": if "Tiny", go to "Grid"; if "Large, cheap trials", go to "Random"; if "Large, costly trials", go to "Bayesian".