A stopper ends one or more trials when a condition is satisfied. Distinct from a scheduler, a stopper considers global state, not relative trial performance.Documentation Index
Fetch the complete documentation index at: https://ray-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Built-in stoppers
| Stopper | When it fires |
|---|---|
MaximumIterationStopper | After max_iter reported iterations. |
TimeoutStopper | After elapsed wall-clock time. |
TrialPlateauStopper | When a trial’s metric stops improving. |
ExperimentPlateauStopper | When the best metric across trials stops improving. |
Dict stop conditions
For simple stops, pass a dict:Custom stoppers
SubclassStopper:
__call__ decides whether to stop a single trial; stop_all stops the entire experiment.
Next steps
Schedulers
Per-trial early stopping.
Distributed tuning
Run experiments across the cluster.