Skip to content

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.

3 participants