EarlyStopping

class EarlyStopping[source]

Bases: object

Context manager for early stopping

__init__(patience, delta=0)[source]

Initialise early stopping context manager

Parameters:
  • patience – wait patience number of epochs without loss improvement before stopping

  • delta – minimum improvement to consider significant (default: 0)

Methods

__init__

Initialise early stopping context manager