Fix early stopping example, fixes #190
parent
4a48d04a1a
commit
dbfb7e8bff
|
@ -868,7 +868,8 @@
|
||||||
" if val_error < minimum_val_error:\n",
|
" if val_error < minimum_val_error:\n",
|
||||||
" minimum_val_error = val_error\n",
|
" minimum_val_error = val_error\n",
|
||||||
" best_epoch = epoch\n",
|
" best_epoch = epoch\n",
|
||||||
" best_model = clone(sgd_reg)"
|
" best_model = sgd_reg\n",
|
||||||
|
" sgd_reg = clone(sgd_reg)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue