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

Slow down learning rate during training #588

Closed
frankherfert opened this issue Jun 4, 2017 · 3 comments
Closed

Slow down learning rate during training #588

frankherfert opened this issue Jun 4, 2017 · 3 comments

Comments

@frankherfert
Copy link

frankherfert commented Jun 4, 2017

It would be great to have a feature that slows down the learning rate after the eval metric hasn't improved for a set number of rounds or after specified intervals.

I have seen this feature in a few neural network implementations where is works well.

As an example, let's say I can get a logloss of 0.5 with a 0.1 learning rate which takes 1000 training rounds after which the score doesn't improve for 50 rounds. With a 0.05 learning rate I can get a logloss of 0.48 but this takes 2000 training rounds. For the first few hundred rounds I could use a much higher rate which then slows down to optimize the last few bits. If I set the learning rate too low, the training sometimes reaches a plateau where it doesn't improve any further before reaching 0.48 at all.

We could have parameters like these:

  • decrease learning rate after no improvement rounds
  • decrease learning rate after rounds (every 500 for example)
  • decrease learning rate factor (0 to 1 range, 0.5 will half the learning rate)
@frankherfert frankherfert changed the title Slow down learning rater during training Slow down learning rate during training Jun 4, 2017
@Laurae2
Copy link
Contributor

Laurae2 commented Jun 4, 2017

@frankherfert Use a custom callback to modify parameters while learning, example: #129

@frankherfert
Copy link
Author

This looks exactly like what I need, thank you for the quick reply!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants