-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
【Hackathon No.13】为 Paddle 新增 CyclicLR 优化调度器 #40698
Conversation
✅ This PR's description meets the template requirements! |
你的PR提交成功,感谢你对开源项目的贡献! |
PR格式检查通过,你的PR将接受Paddle专家以及开源社区的review,请及时关注PR动态。 |
请先通过CI噢~ |
@dingjiaweiww 你好,已修改更新了,但还是有些过不了,可以帮忙看下吗?十分感谢! |
PR-CI-Coverage表示 代码覆盖率不够 |
R-CI-iScan-Python指 代码不符合规范 |
PR-CI-Kunlun-KP-Build和PR-CI-Static-Check可以不通过~ |
感谢帮助! |
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
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
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
@Asthestarsfalll 请解决一下 CI 中 Code Style error 的问题 |
36ca157
down |
@Asthestarsfalll 请解决一下冲突~ |
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
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
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
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
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
PR types
Others
PR changes
APIs
Describe
解决了issue:#40321
增加了CyclicLR优化调度器。具体地,
paddle.optimizer.lr.CyclicLR(base_learning_rate,max_learning_rate,step_size_up,step_size_down, mode='triangular',gamma=1.,scale_fn=None,scale_mode='cycle',last_epoch=-1,verbose=False)
能控制学习率以固定周期在base_learning_rate和max_learning_rate之间变化,它的调整是以batch step进行的,同时还有3种内置的波幅调整策略:“triangular”、“triangular2”、“exp_range”。设计文档:PaddlePaddle/community#33
中文文档:PaddlePaddle/docs#4315