From 19385bbdc5b19264e45ca7383bdf269374bc20fb Mon Sep 17 00:00:00 2001 From: Gopichand Madala Date: Sat, 24 Aug 2024 13:45:34 +0530 Subject: [PATCH] . --- nbs/04_learner.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nbs/04_learner.ipynb b/nbs/04_learner.ipynb index 4fdc5a8..b8de429 100755 --- a/nbs/04_learner.ipynb +++ b/nbs/04_learner.ipynb @@ -1455,14 +1455,14 @@ " self.run.finish()\n", "\n", "\n", - "class EarlyStoppingCallback(Callback):\n", + "class EarlyStoppingCB(Callback):\n", " order = MetricsCB.order+1\n", " def __init__(self, patience=3, min_delta=0.001):\n", " self.patience = patience\n", " self.min_delta = min_delta\n", " self.best_loss = float('inf')\n", " self.wait = 0\n", - " \n", + "\n", " def after_epoch(self, learn):\n", " if not learn.model.training:\n", " current_loss = learn.metrics.all_metrics['loss'].compute()\n",