-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the PR + thorough tests!
Is it okay for it to be a logger warning when the metrics and mode don't agree in update_scheduler_params (allennlp/training/util.py, line 455), or should that be a configuration Error ? |
@DeNeutoy, is this good to merge? |
@DeNeutoy ping. Thanks. |
@codedecde , sorry for letting this slip through the cracks. I've given this another skim and based on that plus @DeNeutoy's previous approval I'm going to merge. Regarding your specific question on the configuration error/warning distinction (allennlp/training/util.py, line 455), I'd be partial to a hard error, but I don't think that needs to hold up merging this PR. Feel free to add that in a followup PR if you feel strongly. Thanks for your contribution! |
Lr scheduler bug (allenai#2905)
Fixes allenai#2895 Couple of things that I would like to discuss - Currently, the design makes it necessary to specify the mode while using the reduce_on_plateau scheduler, unless its specified in a trainer (in which case the mode is set automatically, based on the validation metric) - If the metric and the mode do not match, currently the code uses a logger.warning instead of an exception. Can change that to be an exception.
Fixes #2895
Couple of things that I would like to discuss