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

[rllib] Fix LSTM regression on truncated sequences and add regression test #2898

Merged
merged 7 commits into from Sep 18, 2018

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Sep 17, 2018

What do these changes do?

#2700 regressed LSTM performance by erroneously zeroing out the initial state. This breaks training with truncated sequence lengths (e.g., the tuned pong example).

Incidentally, I also fixed an issue where Pong-ram doesn't pick up the right preprocessor by default.

Testing

Before this fix, the pong a3c example is completely broken. I checked that learning does happen after this fix.

Also added a stateless cartpole env test thanks to @richard4912 , and verified that that test fails before this fix.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/8268/
Test FAILed.

@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/8271/
Test FAILed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/8272/
Test PASSed.

@@ -0,0 +1,179 @@
"""Stateless variant of the CartPole gym environment.
Copy link
Contributor

Choose a reason for hiding this comment

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

Stateless..? Might be the wrong word to use here..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Partially observed?

@ericl ericl merged commit 3a3782c into ray-project:master Sep 18, 2018
@AmplabJenkins
Copy link

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/8282/
Test FAILed.

@ericl ericl added this to Done in RLlib Sep 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
RLlib
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants