guides/writing_your_own_callbacks.py/EarlyStoppingAtMinLoss/__init__
class EarlyStoppingAtMinLoss:    def __init__(self, patience=0):
        super().__init__()
        self.patience = patience
        # best_weights to store the weights at which the minimum loss occurs.
        self.best_weights = None