Skip to content

Use LR schedule for beta and epsilon #3940

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

Merged
merged 5 commits into from
May 8, 2020
Merged

Conversation

andrewcoh
Copy link
Contributor

@andrewcoh andrewcoh commented May 8, 2020

Proposed change(s)

This PR extends the schedule used to decay the learning rate to beta and epsilon. Currently, beta and epsilon are decayed automatically and this is not configurable. This impacts training scenarios like self-play which require some degree of exploration all through out an experiment as the opponent changes.

Additionally, this PR adds beta and epsilon to tensorboard to track these values.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@andrewcoh andrewcoh requested a review from ervteng May 8, 2020 18:36
learning_rate = tf.train.polynomial_decay(
lr, global_step, max_step, 1e-10, power=1.0
if schedule == ScheduleType.CONSTANT:
parameter_rate = tf.Variable(parameter, trainable=False)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ervteng added trainable=False

Copy link
Contributor

@ervteng ervteng left a comment

Choose a reason for hiding this comment

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

🚢 🇮🇹

@andrewcoh andrewcoh merged commit 34dd929 into master May 8, 2020
@delete-merged-branch delete-merged-branch bot deleted the develop-constant-decay branch May 8, 2020 20:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants