What is a conditional hyperparameter?

Quick Overview

Asks you to define a conditional hyperparameter, give examples, and explain why tuning should treat such parameters differently from a flat grid. Tests understanding of tree-structured search spaces and how tuning libraries and Bayesian optimizers support them.

What is a conditional hyperparameter?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is a conditional hyperparameter? ```hint Pick a concrete model Take two optimizers, or two SVM kernels, and list which other settings each one actually reads during training. ``` ### What a Strong Answer Covers - A precise definition and how it changes the shape of the search space - Concrete examples from common models, optimizers or architectures - What goes wrong when a conditional space is flattened into a plain grid or box - How tuning libraries and search algorithms express or support conditional spaces ### Follow-up Questions - How would you tune a conditional space with a Gaussian-process optimizer that has no native support for conditions? - When the number of layers is itself a hyperparameter, how do you define the per-layer settings? - Does random search suffer from a flattened conditional space as much as grid search or a surrogate-based method does?

Overview: Asks you to define a conditional hyperparameter, give examples, and explain why tuning should treat such parameters differently from a flat grid. Tests understanding of tree-structured search spaces and how tuning libraries and Bayesian optimizers support them.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is a conditional hyperparameter?

What a Strong Answer Covers Guidance

  • A precise definition and how it changes the shape of the search space
  • Concrete examples from common models, optimizers or architectures
  • What goes wrong when a conditional space is flattened into a plain grid or box
  • How tuning libraries and search algorithms express or support conditional spaces

Follow-up Questions Guidance

  • How would you tune a conditional space with a Gaussian-process optimizer that has no native support for conditions?
  • When the number of layers is itself a hyperparameter, how do you define the per-layer settings?
  • Does random search suffer from a flattened conditional space as much as grid search or a surrogate-based method does?