code: def __init__(self, patience: int = 5, min_delta: float = 0.01):
      self.patience = patience
      self.min_delta = min_delta
      self.counter = 0
      self.min_validation_loss = float("inf")
  
file_path: doctr/references/classification/utils.py
imports: import math
  import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 1 to create a new EarlyStopper object  with example: obj = EarlyStopper(patience, min_delta)