Stopper.stop_early()

Stopper.stop_early()#

Stopper.stop_early(i, loss_history)[source]#

Returns whether the recent patience window should trigger early stopping.

Parameters:
  • i (int | Any) – Number of completed epochs, or equivalently the next epoch index to be written.

  • loss_history (Any) – Loss history whose first i entries have been written.