-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
except KeyboardInterrupt: pass in neural_network/multilayer_perceptron.py #7596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not really? It stops the training on ctrl-C. |
perhaps it should pass only after a warning On 8 October 2016 at 03:30, Andreas Mueller notifications@github.com
|
It should probably at least say that it's interrupting training. |
Won't an interrupt in the middle of updating leave data corrupt, unusable ? For a clean split between an optimization engine and the user's outer loop,
so the user can print / plot locals, change parameters, break ... |
@denis-bz no that should be fine. It's SGD after all. This was kind of me punting on writing a callback-framework. It works really well in many cases ;) |
actually callbacks in scipy only get the current iterate and don't allow early termination as far as I can see. |
Andreas On callback frameworks / general optimization frameworks: |
Sorry, I don't fully understand your comments. |
(Years later) a
The main purpose of locals is to get some insight into what the caller is doing
|
Description
in 0.18, neural_network/multilayer_perceptron.py _fit_stochastic has
Looks like a late-night patch ?
The text was updated successfully, but these errors were encountered: