# Hyperparameter

> Canonical: https://skillalmanac.com/glossary/hyperparameter | Last verified: 2026-11-25 | Index status: index-eligible

A hyperparameter is a configuration value that controls a model or learning procedure rather than an ordinary learned model parameter. People or automated tuning methods can select it; examples include a training learning rate.

Also called: hyperparameters.

## In plain language

A hyperparameter is a setting, such as a learning rate or batch size. A person can choose it, or a tuning system can compare settings automatically. The distinction is its role: it configures the procedure rather than serving as a model weight learned by that procedure. Poor settings can waste compute or reduce performance, so compare them using an appropriate validation design.

## Technical definition

Hyperparameters configure a model or procedure. Training examples include a learning rate, batch size and epoch budget; a learning-rate schedule can change the rate during a run. Hyperparameter search can compare candidate runs automatically, for example with grid or randomized search. Validation results guide selection, while a separate test set supports final evaluation. Automatic selection does not turn a configuration setting into an ordinary trained weight.

## How it shows up when you use agents

Hyperparameters are set when a model is trained, so they are mostly out of sight when you run Claude Code, Codex, Cursor or Gemini CLI. The model you pick has already been trained with values its builders chose. You see the result, not the settings.

They reach you in three ways:

- **Fine-tuning forms.** If you [fine-tune](/glossary/fine-tuning) a model with a provider or a library, a training job typically exposes settings such as learning rate, batch size and epochs (the three IBM names). The safer habit is to change one value at a time and compare the results.
- **Other settings get the same name.** Documentation sometimes calls generation settings, such as a randomness control, "parameters" or "hyperparameters" loosely. Those apply when a model answers, not when it trains, so check where in the process a setting applies.
- **The method carries over.** Tuning compares settings on validation data; reserve a final test set so repeated selection does not contaminate the reported evaluation. The same discipline helps when you adjust a prompt, an instruction file or a skill: change one thing, rerun the same checks, keep what helps.

If a training run goes badly, the next action is to change one setting, rerun it, and compare against data held back from training. See [Overfitting](/glossary/overfitting) for why training results alone mislead.

## Common confusions

- **Hyperparameter versus parameter.** Parameters, such as weights and biases, are learned during training. Hyperparameters configure the procedure and can be selected manually or automatically; schedules may vary a value during a run. Google's course puts it as hyperparameters controlling aspects of training, while parameters are part of the model itself.
- **Hyperparameter versus prompt.** A prompt steers a finished model at answer time. A training hyperparameter configures the learning procedure; some documentation also calls inference settings hyperparameters. See [Prompt engineering](/glossary/prompt-engineering).
- **Hyperparameter versus a setting you can see.** Many hyperparameters never appear in an agent's menus, because they were fixed when the model was trained. A setting in your tool is not necessarily one of them.
- **Tuning versus training.** Training updates the parameters. Tuning searches for good hyperparameters, and each trial usually means another training run.

## Worked examples in this catalogue

### [llm-eval-test-sets](https://skillalmanac.com/skills/skill-almanac/llm-eval-test-sets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Builds and validates an eval dataset for any LLM feature, with a checker for duplicates, missing graders, imbalance and leakage.

Why it exercises the concept: Tuning compares candidate settings on validation cases, reserving separate test data for final evaluation. This skill checks dataset structure and selected duplicate/leakage signals; those checks alone do not establish grading correctness or trustworthy outcome comparisons.

### [Prompt Engineering for Agents vs Chat Models](https://skillalmanac.com/learn/prompt-engineering-guide-for-agents)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide compares prompting an agent with prompting a chat model, and cites Anthropic's advice to have success criteria and a way to test them before improving a prompt.

Why it exercises the concept: Prompt wording is a setting you adjust after training, and the guide shows the same test-then-change habit that hyperparameter tuning uses before training.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

```
/model
```

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code’s /model changes the selected model setting. Aliases, hybrid settings and configured fallback behavior can cause later turns to use different models; inspect the active configuration rather than assuming every answer uses one fixed model.

Why it exercises the concept: Model choice is one of the settings open to an agent user. The training hyperparameters of that model were fixed by its builders before you saw it.

## Related terms

- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Neural network](https://skillalmanac.com/glossary/neural-network.md)
- [Fine-tuning](https://skillalmanac.com/glossary/fine-tuning.md)
- [Overfitting](https://skillalmanac.com/glossary/overfitting.md)
- [Gradient descent](https://skillalmanac.com/glossary/gradient-descent.md)
- [Loss function](https://skillalmanac.com/glossary/loss-function.md)

## Sources

- [What is hyperparameter tuning?](https://www.ibm.com/think/topics/hyperparameter-tuning), IBM (accessed 2026-11-24)
- [Linear regression: Hyperparameters](https://developers.google.com/machine-learning/crash-course/linear-regression/hyperparameters), Google for Developers (accessed 2026-11-24)
- [Machine Learning Glossary: hyperparameter](https://developers.google.com/machine-learning/glossary#hyperparameter), Google (accessed 2026-11-24)
- [Tuning hyper-parameters of an estimator](https://scikit-learn.org/stable/modules/grid_search.html), scikit-learn (accessed 2026-11-24)
- [Model configuration: model settings, aliases and fallback behavior](https://code.claude.com/docs/en/model-config), Claude Code documentation (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
