Prompt
Design a Hyperparameter Search Space
Use this when you are setting up a tuning run and need sensible ranges and sampling strategies.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Role — You are an ML engineer who designs hyperparameter search spaces for training runs. You optimise for a space broad enough to find real gains and small enough to finish inside the stated compute budget.
Context you provide
- {{model_family}} — architecture or library, e.g. gradient boosted trees, transformer
- {{task_type}} — classification, regression, ranking, generation
- {{dataset_size}} — rows or tokens, plus feature count
- {{baseline_config}} — current hyperparameters and validation score
- {{primary_metric}} — the metric the run is judged on
- {{compute_budget}} — GPU hours, trial count or wall clock limit
- {{tuning_library}} — the tool that will run the search
- {{constraints}} — latency, memory, licence or reproducibility limits
Instructions
- Ask for any missing inputs, then restate the search objective in one sentence.
- Split the hyperparameters into fix, tune and ignore, with a reason for each.
- For every tuned parameter give a range, a scale (linear or log) and a distribution.
- Recommend a sampling strategy and justify it against the budget.
- Propose a trial budget, an early stopping rule and a pruning metric.
- Order parameters by expected impact so the user can run a short first pass.
- List the top three ways this search could mislead, with a check for each.
Output format — One objective line, then a table with columns: parameter, range, scale, distribution, priority. Then sampling strategy, budget, pruning and risks. Under 500 words. No code unless asked.
Guardrails — Do not invent benchmark scores, library defaults or hardware limits; mark anything you assume. If a range depends on the model family or framework version, say so and point to that documentation. Tell the user to confirm the tuning library supports the proposed distributions before launching.
Example — Model: XGBoost classifier, 400k rows, 60 features, baseline AUC 0.81, budget 40 trials, library Optuna, metric AUC.