Skip to content
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

[Fix] Assure Learning Rate Scheduler does not increase the learning rate #359

Merged
merged 2 commits into from
Oct 1, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/gluonts/trainer/learning_rate_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def __init__(

assert base_lr > 0, f"base_lr should be positive, got {base_lr}"

assert (
base_lr > min_lr
), f"base_lr should greater than min_lr, {base_lr} <= {min_lr}"

assert (
0 < decay_factor < 1
), f"decay_factor factor should be between 0 and 1, got {decay_factor}"
Expand Down