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] Basic regression tests on CartPole #1608

Merged
merged 5 commits into from
Mar 4, 2018

Conversation

ericl
Copy link
Contributor

@ericl ericl commented Feb 26, 2018

What do these changes do?

This is first cut at pre-release regression tests, currently just CartPole.

Related issue number

#1530

@richardliaw
Copy link
Contributor

We should outline on #1530 perhaps what we want the full regression suite to look like.

@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/3960/
Test PASSed.

for test in glob.glob("regression_tests/*.yaml"):
config = yaml.load(open(test).read())
for trial in config.values():
trial["stop"]["training_iteration"] = 1
Copy link
Contributor

Choose a reason for hiding this comment

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

ok fix

@@ -157,8 +157,9 @@ def _step(self, global_timestep):
return ret

def stats(self):
mean_100ep_reward = round(np.mean(self.episode_rewards[-101:-1]), 5)
mean_100ep_length = round(np.mean(self.episode_lengths[-101:-1]), 5)
n = self.config["smoothing_num_episodes"] + 1
Copy link
Contributor

Choose a reason for hiding this comment

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

would be good to add a note that there's some weird thing with the last entry and we should fix

@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/4046/
Test PASSed.

@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/4047/
Test PASSed.

@ericl
Copy link
Contributor Author

ericl commented Mar 4, 2018

Test hang seems unrelated, merging.

@ericl ericl merged commit 75293a0 into ray-project:master Mar 4, 2018
royf added a commit to royf/ray that referenced this pull request Apr 22, 2018
* 'master' of https://github.com/royf/ray-private:
  [rllib] Basic regression tests on CartPole (ray-project#1608)
  [autoscaler] [tune] More doc fixes (ray-project#1560)
  [tune] Hyperband Max Iter Fix (ray-project#1620)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants