Skip to content

[rllib] Basic regression tests on CartPole - #1608

Merged
ericl merged 5 commits into
ray-project:masterfrom
ericl:smoke-test
Mar 4, 2018
Merged

ericl merged 5 commits into
ray-project:masterfrom
ericl:smoke-test

Conversation

@ericl

@ericl ericl commented Feb 26, 2018

Copy link
Copy Markdown
Contributor

What do these changes do?

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

Related issue number

#1530

@richardliaw

Copy link
Copy Markdown
Contributor

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

@AmplabJenkins

Copy link
Copy Markdown

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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok fix

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
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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

ericl commented Mar 4, 2018

Copy link
Copy Markdown
Contributor Author

Test hang seems unrelated, merging.

@ericl
ericl merged commit 75293a0 into ray-project:master Mar 4, 2018
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