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] Add the ability to run arbitrary Python scripts with ray.tune #1132

Merged
merged 39 commits into from
Oct 18, 2017
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
07e9263
fix yaml bug
ericl Oct 13, 2017
ed9d2d1
add ext agent
ericl Oct 13, 2017
4f4d6de
gpus
ericl Oct 14, 2017
2aaf661
update
ericl Oct 14, 2017
bc86b46
tuning
ericl Oct 16, 2017
96775f1
docs
ericl Oct 16, 2017
56ad4ea
Sun Oct 15 21:09:25 PDT 2017
ericl Oct 16, 2017
55b2386
lint
ericl Oct 16, 2017
a9e8345
update
ericl Oct 16, 2017
140b612
Sun Oct 15 22:39:55 PDT 2017
ericl Oct 16, 2017
924741d
Sun Oct 15 22:40:17 PDT 2017
ericl Oct 16, 2017
9524e03
Sun Oct 15 22:43:06 PDT 2017
ericl Oct 16, 2017
d74fafc
Sun Oct 15 22:46:06 PDT 2017
ericl Oct 16, 2017
c0a98b1
Sun Oct 15 22:46:21 PDT 2017
ericl Oct 16, 2017
2f5a93f
Sun Oct 15 22:48:11 PDT 2017
ericl Oct 16, 2017
de3f5f9
Sun Oct 15 22:48:44 PDT 2017
ericl Oct 16, 2017
9cea84e
Sun Oct 15 22:49:23 PDT 2017
ericl Oct 16, 2017
a5eb3bb
Sun Oct 15 22:50:21 PDT 2017
ericl Oct 16, 2017
be304f8
Sun Oct 15 22:53:00 PDT 2017
ericl Oct 16, 2017
da8fff1
Sun Oct 15 22:53:34 PDT 2017
ericl Oct 16, 2017
f3b75b7
Sun Oct 15 22:54:33 PDT 2017
ericl Oct 16, 2017
f7ba39f
Sun Oct 15 22:54:50 PDT 2017
ericl Oct 16, 2017
b3ae696
Sun Oct 15 22:55:20 PDT 2017
ericl Oct 16, 2017
2eedda8
Sun Oct 15 22:56:56 PDT 2017
ericl Oct 16, 2017
7477228
Sun Oct 15 22:59:03 PDT 2017
ericl Oct 16, 2017
2c6ccd0
fix
ericl Oct 16, 2017
1b13de1
Update tune_mnist_ray.py
ericl Oct 16, 2017
cbb168e
remove script trial
ericl Oct 16, 2017
196aa6c
fix
ericl Oct 16, 2017
9265b83
reorder
ericl Oct 16, 2017
ef8f5c0
fix ex
ericl Oct 16, 2017
88c3a96
py2 support
ericl Oct 16, 2017
d8babc2
upd
ericl Oct 16, 2017
1060ca9
comments
ericl Oct 16, 2017
2b64a06
comments
ericl Oct 16, 2017
0d4d6c6
cleanup readme
ericl Oct 16, 2017
9cea4cf
fix trial
ericl Oct 17, 2017
0323c24
annotate
ericl Oct 17, 2017
d5ba6da
Update rllib.rst
ericl Oct 17, 2017
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
fix
  • Loading branch information
ericl committed Oct 16, 2017
commit 196aa6c557c80e8a9905ca05839932869fef070d
38 changes: 19 additions & 19 deletions python/ray/tune/examples/tune_mnist_ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,22 @@ def train(config={'activation': 'relu'}, reporter=None):


if __name__ == '__main__':
runner = TrialRunner()

for act in ['relu', 'elu', 'tanh']:
runner.add_trial(
Trial(
'mnist', 'script',
stop={'mean_accuracy': 0.99, 'time_total_s': 600},
config={
'script_file_path': os.path.abspath(__file__),
'script_min_iter_time_s': 1,
'activation': act,
},
agent_id='act={}'.format(act)))

ray.init()

while not runner.is_finished():
runner.step()
print(runner.debug_string())
runner = TrialRunner()

for act in ['relu', 'elu', 'tanh']:
runner.add_trial(
Trial(
'mnist', 'script',
stop={'mean_accuracy': 0.99, 'time_total_s': 600},
config={
'script_file_path': os.path.abspath(__file__),
'script_min_iter_time_s': 1,
'activation': act,
},
agent_id='act={}'.format(act)))

ray.init()

while not runner.is_finished():
runner.step()
print(runner.debug_string())