-
Notifications
You must be signed in to change notification settings - Fork 190
add new problem: CossineAnnealingLr learning rate scheduler #493
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
add new problem: CossineAnnealingLr learning rate scheduler #493
Conversation
moe18
left a comment
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 an issue with the test results
| }, | ||
| { | ||
| "test": "import math\nscheduler = CosineAnnealingLRScheduler(initial_lr=0.1, T_max=10, min_lr=0.001)\nprint(f\"{scheduler.get_lr(epoch=2):.4f}\")", | ||
| "expected_output": "0.0818" |
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.
I got this from the solution
0.0905
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.
Yup, true, will fix
| }, | ||
| { | ||
| "test": "import math\nscheduler = CosineAnnealingLRScheduler(initial_lr=0.1, T_max=10, min_lr=0.001)\nprint(f\"{scheduler.get_lr(epoch=7):.4f}\")", | ||
| "expected_output": "0.0275" |
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.
0.0214 I got this from the solution
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.
True as well
b92a449 to
564964d
Compare
|
Fixed the test cases, changed the question number and force pushed changed commit message to avoid matching github issue refs |
564964d to
20d0fe4
Compare
resolves #478