Skip to main content

Module study

Module study 

Source
Expand description

Study runner — orchestrates hyperparameter optimization.

Iterates over trials: samples parameters, calls the executor with a TrialContext handle, records metrics, feeds results back to the sampler (ask/tell), consults the pruner on intermediate metrics, and persists the study through an optional tracker after every trial. Resume-aware: a study with N recorded trials continues at trial N.

Structs§

FnTrialExecutor
Function-based trial executor for convenience.
StudyRunner
Runs a Study: samples parameters, executes trials, records results.
TrialContext
Handle passed to a trial: reports intermediate metrics and asks whether the pruner wants the trial stopped.

Enums§

TrialOutcome
Result of executing a trial. Separates control flow (pruning) from errors.

Traits§

TrialExecutor
Callback that executes a trial given sampled parameters.