-
Notifications
You must be signed in to change notification settings - Fork 472
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
Logging learning rate #147
Conversation
What does group number refer to? |
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.
Very cool!
@@ -281,6 +281,8 @@ def learn(self): | |||
|
|||
stats["time/forward"] = forward_time | |||
stats["time/backward"] = backward_time | |||
for group_number, lr in enumerate(self.scheduler.get_last_lr()): | |||
stats[f"learning_rate/group_{group_number}"] = lr |
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.
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.
An index number of a particular parameter group. In most cases there will be only one but we will also plot correctly in case of several groups |
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.
Thanks for the new feature! LGTM
In this PR, learning rate is added to stats. Now it is easy to verify the LR scheduler work in wandb: