Skip to content

Commit

Permalink
[MRG] Added warning on keyboard interrupt during MLP fit (scikit-lear…
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilliam125 authored and lesteve committed Oct 20, 2016
1 parent ee3e617 commit cd714b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn/neural_network/multilayer_perceptron.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def _fit_stochastic(self, X, y, activations, deltas, coef_grads,
'converged yet.'
% (), ConvergenceWarning)
except KeyboardInterrupt:
pass
warnings.warn("Training interrupted by user.")

if early_stopping:
# restore best weights
Expand Down

0 comments on commit cd714b1

Please sign in to comment.