Skip to content

Commit 7b8363a

Browse files
authored
fix loss inequality for early stopping
1 parent 8f431e2 commit 7b8363a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/en/guide/migrate/early_stopping.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@
486486
" # The early stopping strategy: stop the training if `val_loss` does not\n",
487487
" # decrease over a certain number of epochs.\n",
488488
" wait += 1\n",
489-
" if val_loss > best:\n",
489+
" if val_loss < best:\n",
490490
" best = val_loss\n",
491491
" wait = 0\n",
492492
" if wait >= patience:\n",

0 commit comments

Comments
 (0)