From dbfb7e8bffdcbc0d9c16a682f184538528a83fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Mon, 6 Jul 2020 20:42:26 +1200 Subject: [PATCH] Fix early stopping example, fixes #190 --- 04_training_linear_models.ipynb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/04_training_linear_models.ipynb b/04_training_linear_models.ipynb index 1b113a5..b0dea2b 100644 --- a/04_training_linear_models.ipynb +++ b/04_training_linear_models.ipynb @@ -868,7 +868,8 @@ " if val_error < minimum_val_error:\n", " minimum_val_error = val_error\n", " best_epoch = epoch\n", - " best_model = clone(sgd_reg)" + " best_model = sgd_reg\n", + " sgd_reg = clone(sgd_reg)" ] }, {