Skip to content

Define a search space

A search space specifies the inputs HyperOptimizer can change and the values it may try. Start with a few parameters that affect your objective, using ranges that your workload can evaluate reliably.

Dashboard type TOML type Example Define
Whole number int Number of iterations. min, max, and optional step.
Continuous value double Learning rate or tolerance. min, max, and optional step.
Fixed choices categorical Batch size or solver name. values, such as ["16", "32", "64"].
True / false categorical Enable a filter. String choices "true" and "false".

Numeric parameters also support log sampling. Use it for a positive range spanning orders of magnitude, such as a learning rate from 0.0001 to 0.1. Log sampling requires a positive minimum; do not combine it with an incompatible step. Validate the configuration before launch.

A parameter’s name identifies it in the configuration; its slug determines the trial argument. Prefer lowercase kebab-case slugs.

[[parameters]]
name = "learning_rate"
slug = "learning-rate"
type = "double"
min = 0.0001
max = 0.1
log = true

By default, the program receives a flag such as --hpo-learning-rate=0.01. Plain flags and custom templates can adapt existing programs. See accept trial parameters.

Keep credentials, dataset locations, image tags, and other infrastructure settings outside the search space. Use fixed arguments, image contents, or runtime environment variables as appropriate.

Choose whether seeds are fixed or varied deliberately. A fixed seed helps isolate parameter effects; repeated evaluations with other seeds help assess variability.

Check relationships between inputs. If fast-period must be less than slow-period, choose non-overlapping ranges or validate the relationship in your workload. Independent ranges alone do not enforce cross-parameter constraints.

Do not silently clamp or ignore invalid values: the recorded parameter set would no longer describe the evaluation. Fail clearly, or use a deliberately designed penalty metric for known invalid configurations.

  • Confirm that changing each parameter changes the intended computation.
  • Narrow ranges around useful regions only after reviewing enough results.
  • Widen a boundary deliberately when promising trials cluster there.
  • For grid search, multiply the number of choices across parameters before setting the budget.

Next: choose objectives, choose a search algorithm, or configure an experiment.