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] support local mode #2795

Merged
merged 6 commits into from
Sep 3, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_local.py
  • Loading branch information
robertnishihara authored Sep 1, 2018
commit b340bb412912770b8282415bc56044fd053e8dd1
2 changes: 2 additions & 0 deletions python/ray/rllib/test/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
from ray.rllib.agents.ppo import PPOAgent, DEFAULT_CONFIG
import ray


class LocalModeTest(unittest.TestCase):
def testLocal(self):
ray.init(local_mode=True)
cf = DEFAULT_CONFIG.copy()
agent = PPOAgent(cf, "CartPole-v0")
print(agent.train())
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't Jenkins run in 2.7...?

Copy link
Collaborator

Choose a reason for hiding this comment

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

What's wrong?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh the print() statement should fail, but you got the fix.



if __name__ == "__main__":
unittest.main(verbosity=2)