CertKeen

NVIDIA Generative AI LLMs Associate (NCA-GENL) · Free practice question 6 of 12

Random search versus grid search

Gatesgarth Labs can afford 30 training runs to tune five hyperparameters, of which probably only two matter much. Which search strategy usually explores the important hyperparameters more effectively?

  1. A.Exhaustive search, which evaluates every possible value of all five hyperparameters
  2. B.Manual search, which changes one hyperparameter at a time from a default
  3. C.Random search, which samples each run's values independently from the chosen ranges
  4. D.Grid search, which tries every combination of a few fixed values per hyperparameter
Show answer and explanation

Correct answer: C. Random search, which samples each run's values independently from the chosen ranges

Why: With a fixed budget, random search tries many distinct values of each hyperparameter, so the few that matter get sampled finely, whereas a grid repeats the same handful of values and spends most runs varying unimportant settings. One-at-a-time manual search misses interactions, and exhaustive search is infeasible within 30 runs.

More free NVIDIA Generative AI LLMs Associate (NCA-GENL) questions