Skip to content

Commit

Permalink
Fix early stopping example, fixes ageron#190
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Jul 6, 2020
1 parent 3426108 commit fabd609
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 04_training_linear_models.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,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)"
]
},
{
Expand Down

0 comments on commit fabd609

Please sign in to comment.