Skip to content

Renaming max_step to interrupted in TermialStep(s) #3908

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 2 commits into from
May 1, 2020

Conversation

vincentpierre
Copy link
Contributor

Proposed change(s)

Renaming max_step to interrupted in TermialStep(s)
interrupted is more general and more descriptive of what that flag actually represents.
Disambiguates trainer max_steps from agent max_steps on Python

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 : renaming

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

@vincentpierre vincentpierre self-assigned this Apr 30, 2020
@ervteng
Copy link
Contributor

ervteng commented Apr 30, 2020

Did we ever decide to propagate the enum (done or interrupted for TerminalSteps) into the Python side?

Now I remember that we decided this was too cumbersome, e.g. TerminalStep.state == StateType.done. Having two flags seems fine.

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.

👍

@vincentpierre
Copy link
Contributor Author

Now I remember that we decided this was too cumbersome, e.g. TerminalStep.state == StateType.done. Having two flags seems fine.

We no longer need two flags since the done flag is now implicit if the Agent is in the TerminationSteps

I will wait on release to be merged into master to merge this.

@vincentpierre vincentpierre merged commit aa555c3 into master May 1, 2020
@delete-merged-branch delete-merged-branch bot deleted the develop-rename-max_step branch May 1, 2020 21:38
@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