ray.tune.stopper.TimeoutStopper
ray.tune.stopper.TimeoutStopper#
- class ray.tune.stopper.TimeoutStopper(timeout: Union[int, float, datetime.timedelta])[source]#
Bases:
ray.tune.stopper.stopper.StopperStops all trials after a certain timeout.
This stopper is automatically created when the
time_budget_sargument is passed totrain.RunConfig().- Parameters
timeout – Either a number specifying the timeout in seconds, or a
datetime.timedeltaobject.
PublicAPI: This API is stable across Ray releases.
Methods