What is a hyperparameter search space?

Quick Overview

Asks what a hyperparameter search space is and what goes into defining one before tuning a model. Tests knowledge of parameter types, bounds, log versus uniform sampling, conditional parameters, and how the design of the space limits what a tuner can find.

What is a hyperparameter search space?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Before a tuner such as grid search, random search or Bayesian optimization can run, you have to tell it what it is allowed to try. What is a hyperparameter search space? ```hint Think beyond a list of values For each hyperparameter, ask what a tuner needs to know besides its name to draw a value, and whether every parameter makes sense in every configuration. ``` ### What a Strong Answer Covers - A definition of the search space as the set of configurations a tuner may try. - What must be specified for each hyperparameter: its type, bounds or choices, and sampling scale. - Flat versus conditional spaces, with an example. - Why the design of the space affects tuning results, including scale and dimensionality. ### Follow-up Questions - Why is a learning rate usually sampled on a log scale? Roughly what fraction of uniform samples between 1e-5 and 1e-1 fall below 1e-3? - Your best trial sits at the upper bound of one parameter. What do you do next? - How do grid search, random search and Bayesian optimization each cope with a conditional search space?

Overview: Asks what a hyperparameter search space is and what goes into defining one before tuning a model. Tests knowledge of parameter types, bounds, log versus uniform sampling, conditional parameters, and how the design of the space limits what a tuner can find.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Before a tuner such as grid search, random search or Bayesian optimization can run, you have to tell it what it is allowed to try. What is a hyperparameter search space?

What a Strong Answer Covers Guidance

  • A definition of the search space as the set of configurations a tuner may try.
  • What must be specified for each hyperparameter: its type, bounds or choices, and sampling scale.
  • Flat versus conditional spaces, with an example.
  • Why the design of the space affects tuning results, including scale and dimensionality.

Follow-up Questions Guidance

  • Why is a learning rate usually sampled on a log scale? Roughly what fraction of uniform samples between 1e-5 and 1e-1 fall below 1e-3?
  • Your best trial sits at the upper bound of one parameter. What do you do next?
  • How do grid search, random search and Bayesian optimization each cope with a conditional search space?