Skip to content

Conversation

@komaksym
Copy link
Contributor

resolves #478

@komaksym komaksym changed the title add new problem: CossineAnnealingLr add new problem: CossineAnnealingLr learning rate scheduler Jun 30, 2025
Copy link
Collaborator

@moe18 moe18 left a 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"
Copy link
Collaborator

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

Copy link
Contributor Author

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"
Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True as well

@komaksym komaksym force-pushed the add_new_problem_CosineAnnealingLR branch from b92a449 to 564964d Compare July 4, 2025 07:27
@komaksym
Copy link
Contributor Author

komaksym commented Jul 4, 2025

Fixed the test cases, changed the question number and force pushed changed commit message to avoid matching github issue refs

@komaksym komaksym force-pushed the add_new_problem_CosineAnnealingLR branch from 564964d to 20d0fe4 Compare July 4, 2025 08:04
@moe18 moe18 merged commit 56fd697 into Open-Deep-ML:main Jul 4, 2025
1 check failed
@komaksym komaksym deleted the add_new_problem_CosineAnnealingLR branch July 5, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Problems: Variations of Learning Rate Schedulers

2 participants