Skip to content

Commit d99c1de

Browse files
authored
Merge pull request #349 from prabhatnagarajan/prune_dqn_example
Move Atari Wrappers
2 parents dd38230 + a0564ad commit d99c1de

File tree

12 files changed

+21
-340
lines changed

12 files changed

+21
-340
lines changed

examples/ale/train_a2c_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from chainerrl import policy
2424
from chainerrl import v_function
2525

26-
import atari_wrappers
26+
from chainerrl.wrappers import atari_wrappers
2727

2828

2929
def phi(x):

examples/ale/train_a3c_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from chainerrl.recurrent import RecurrentChainMixin
2929
from chainerrl import v_function
3030

31-
import atari_wrappers
31+
from chainerrl.wrappers import atari_wrappers
3232

3333

3434
class A3CFF(chainer.ChainList, a3c.A3CModel):

examples/ale/train_acer_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from chainerrl.optimizers import rmsprop_async
2929
from chainerrl.replay_buffer import EpisodicReplayBuffer
3030

31-
import atari_wrappers
31+
from chainerrl.wrappers import atari_wrappers
3232

3333

3434
def main():

examples/ale/train_categorical_dqn_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from chainerrl import misc
2020
from chainerrl import replay_buffer
2121

22-
import atari_wrappers
22+
from chainerrl.wrappers import atari_wrappers
2323

2424

2525
def main():

examples/ale/train_dqn_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from chainerrl.q_functions import DuelingDQN
2727
from chainerrl import replay_buffer
2828

29-
import atari_wrappers
29+
from chainerrl.wrappers import atari_wrappers
3030

3131

3232
class SingleSharedBias(chainer.Chain):

examples/ale/train_dqn_batch_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
from chainerrl.q_functions import DuelingDQN
2626
from chainerrl import replay_buffer
2727

28-
import atari_wrappers
28+
from chainerrl.wrappers import atari_wrappers
2929

3030

3131
class SingleSharedBias(chainer.Chain):

examples/ale/train_nsq_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
from chainerrl import misc
2929
from chainerrl.optimizers import rmsprop_async
3030

31-
import atari_wrappers
31+
from chainerrl.wrappers import atari_wrappers
3232

3333

3434
def main():

examples/ale/train_ppo_ale.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from chainerrl import policy
2323
from chainerrl import v_function
2424

25-
import atari_wrappers
25+
from chainerrl.wrappers import atari_wrappers
2626

2727

2828
class A3CFF(chainer.ChainList, A3CModel):

examples/atari/dqn/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ python train_dqn.py [options]
1616
- `--gpu`. Specifies the GPU. If you do not have a GPU on your machine, run the example with the option `--gpu -1`. E.g. `python train_dqn.py --gpu -1`.
1717
- `--env`. Specifies the environment.
1818
- `--render`. Add this option to render the states in a GUI window.
19+
- `--seed`. This option specifies the random seed used.
20+
- `--outdir` This option specifies the output directory to which the results are written.
1921

2022
To view the full list of options, either view the code or run the example with the `--help` option.
2123

0 commit comments

Comments
 (0)