ray.tune.stopper.MaximumIterationStopper#

class ray.tune.stopper.MaximumIterationStopper(max_iter: int)[source]#

Bases: ray.tune.stopper.stopper.Stopper

Stop trials after reaching a maximum number of iterations

Parameters

max_iter – Number of iterations before stopping a trial.

PublicAPI: This API is stable across Ray releases.

stop_all()[source]#

Returns true if the experiment should be terminated.