-
Notifications
You must be signed in to change notification settings - Fork 225
Rename examples directories #487
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
Changes from 8 commits
fec5537
0958798
e50dc43
6cd7fb8
b0dc93e
cd7180b
542fda6
a9485a7
4c84abe
019d6ab
935ed86
626b33e
0fe53e4
c880c2f
156990e
de52f96
b28ea54
64cfd08
0671f2a
16caced
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,8 @@ | ||
| # Examples | ||
|
|
||
| - `ale`: examples for general Atari games | ||
| - `atari`: examples with benchmark scores for reproducing published results on Atari | ||
| - `atari`: examples for general Atari games | ||
| - `atari/reproduction`: examples with benchmark scores for reproducing published results on Atari | ||
| - `gym`: examples for OpenAI Gym environments | ||
| - `grasping`: examples for a Bullet-based robotic grasping environment | ||
| - `mujoco`: examples with benchmark scores for reproducing published results on MuJoCo tasks | ||
| - `mujoco/reproduction`: examples with benchmark scores for reproducing published results on MuJoCo tasks | ||
| - `quickstart`: a quickstart guide of ChainerRL | ||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/reproduction/dqn | ||
| python examples/atari/reproduction/dqn/train_dqn.py --env PongNoFrameskip-v4 --steps 100 --replay-start-size 50 --outdir $outdir/atari/reproduction/dqn --eval-n-steps 200 --eval-interval 50 --n-best-episodes 1 --gpu $gpu | ||
| model=$(find $outdir/atari/reproduction/dqn -name "*_finish") | ||
| python examples/atari/reproduction/dqn/train_dqn.py --env PongNoFrameskip-v4 --demo --load $model --outdir $outdir/temp --eval-n-steps 200 --gpu $gpu |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/reproduction/iqn | ||
| python examples/atari/reproduction/iqn/train_iqn.py --env PongNoFrameskip-v4 --steps 100 --replay-start-size 50 --outdir $outdir/atari/reproduction/iqn --eval-n-steps 200 --eval-interval 50 --n-best-episodes 1 --gpu $gpu | ||
| model=$(find $outdir/atari/reproduction/iqn -name "*_finish") | ||
| python examples/atari/reproduction/iqn/train_iqn.py --env PongNoFrameskip-v4 --demo --load $model --outdir $outdir/temp --eval-n-steps 200 --gpu $gpu |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
| echo "outdir: $outdir" | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/reproduction/rainbow | ||
| python examples/atari/reproduction/rainbow/train_rainbow.py --env PongNoFrameskip-v4 --steps 100 --replay-start-size 50 --outdir $outdir/atari/reproduction/rainbow --eval-n-steps 200 --eval-interval 50 --n-best-episodes 1 --gpu $gpu | ||
| model=$(find $outdir/atari/reproduction/rainbow -name "*_finish") | ||
| python examples/atari/reproduction/rainbow/train_rainbow.py --env PongNoFrameskip-v4 --demo --load $model --outdir $outdir/temp --eval-n-steps 200 --gpu $gpu |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/a2c | ||
| python examples/atari/train_a2c_ale.py --env PongNoFrameskip-v4 --steps 100 --update-steps 50 --outdir $outdir/atari/a2c | ||
| model=$(find $outdir/atari/a2c -name "*_finish") | ||
| python examples/atari/train_a2c_ale.py --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/a3c (only for cpu) | ||
| if [[ $gpu -lt 0 ]]; then | ||
| python examples/atari/train_a3c_ale.py 4 --env PongNoFrameskip-v4 --steps 100 --outdir $outdir/atari/a3c | ||
| model=$(find $outdir/atari/a3c -name "*_finish") | ||
| python examples/atari/train_a3c_ale.py 4 --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/acer (only for cpu) | ||
| if [[ $gpu -lt 0 ]]; then | ||
| python examples/atari/train_acer_ale.py 4 --env PongNoFrameskip-v4 --steps 100 --outdir $outdir/atari/acer | ||
| model=$(find $outdir/atari/acer -name "*_finish") | ||
| python examples/atari/train_acer_ale.py 4 --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/categorical_dqn | ||
| python examples/atari/train_categorical_dqn_ale.py --env PongNoFrameskip-v4 --steps 100 --replay-start-size 50 --outdir $outdir/atari/categorical_dqn --gpu $gpu | ||
| model=$(find $outdir/atari/categorical_dqn -name "*_finish") | ||
| python examples/atari/train_categorical_dqn_ale.py --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp --gpu $gpu |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/dqn batch | ||
keisuke-nakata marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| python examples/atari/train_dqn_batch_ale.py --env PongNoFrameskip-v4 --steps 100 --replay-start-size 50 --outdir $outdir/atari/dqn_batch --gpu $gpu | ||
| model=$(find $outdir/atari/dqn_batch -name "*_finish") | ||
| python examples/atari/train_dqn_batch_ale.py --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp --gpu $gpu | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/nsq (only for cpu) | ||
| if [[ $gpu -lt 0 ]]; then | ||
| python examples/atari/train_nsq_ale.py 4 --env PongNoFrameskip-v4 --steps 100 --outdir $outdir/atari/nsq | ||
| model=$(find $outdir/atari/nsq -name "*_finish") | ||
| python examples/atari/train_nsq_ale.py 4 --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp | ||
| fi |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # atari/ppo | ||
| python examples/atari/train_ppo_ale.py --env PongNoFrameskip-v4 --steps 100 --update-interval 50 --batchsize 16 --epochs 2 --outdir $outdir/atari/ppo --gpu $gpu | ||
| model=$(find $outdir/atari/ppo -name "*_finish") | ||
| python examples/atari/train_ppo_ale.py --env PongNoFrameskip-v4 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp --gpu $gpu |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # mujoco/reproduction/ddpg (specify non-mujoco env to test without mujoco) | ||
| python examples/mujoco/reproduction/ddpg/train_ddpg.py --env Pendulum-v0 --gpu $gpu --steps 10 --replay-start-size 5 --batch-size 5 --outdir $outdir/mujoco/reproduction/ddpg | ||
| model=$(find $outdir/mujoco/reproduction/ddpg -name "*_finish") | ||
| python examples/mujoco/reproduction/ddpg/train_ddpg.py --env Pendulum-v0 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp --gpu $gpu |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # mujoco/reproduction/ppo (specify non-mujoco env to test without mujoco) | ||
| python examples/mujoco/reproduction/ppo/train_ppo.py --steps 10 --update-interval 5 --batch-size 5 --epochs 2 --outdir $outdir/mujoco/reproduction/ppo --env Pendulum-v0 --gpu $gpu | ||
| model=$(find $outdir/mujoco/reproduction/ppo -name "*_finish") | ||
| python examples/mujoco/reproduction/ppo/train_ppo.py --demo --load $model --eval-n-runs 1 --env Pendulum-v0 --outdir $outdir/temp --gpu $gpu |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| set -Ceu | ||
|
|
||
| outdir=$(mktemp -d) | ||
|
|
||
| gpu="$1" | ||
|
|
||
| # mujoco/reproduction/td3 (specify non-mujoco env to test without mujoco) | ||
| python examples/mujoco/reproduction/td3/train_td3.py --env Pendulum-v0 --gpu $gpu --steps 10 --replay-start-size 5 --batch-size 5 --outdir $outdir/mujoco/reproduction/td3 | ||
| model=$(find $outdir/mujoco/reproduction/td3 -name "*_finish") | ||
| python examples/mujoco/reproduction/td3/train_td3.py --env Pendulum-v0 --demo --load $model --eval-n-runs 1 --outdir $outdir/temp --gpu $gpu |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
mujoco/reproductionbe in gym/reproduction? Or should we move gym tasks that use mujoco intomujoco@muupan ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is, should we have a
mujocoandmujoco/reproductiondirectory, where mujoco tasks formerly ingymmove tomujoco?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @prabhatnagarajan @muupan , I'll fix this.