ray.tune.stopper.TimeoutStopper#
- class ray.tune.stopper.TimeoutStopper(timeout: int | float | timedelta)[source]#
Bases:
Stopper
Stops all trials after a certain timeout.
This stopper is automatically created when the
time_budget_s
argument is passed totrain.RunConfig()
.- Parameters:
timeout – Either a number specifying the timeout in seconds, or a
datetime.timedelta
object.
Methods