Skip to content

Commit

Permalink
Update Cartpole configuration files and colab to match default Gym ma…
Browse files Browse the repository at this point in the history
…x episode length.

PiperOrigin-RevId: 232791515
  • Loading branch information
psc-g committed Feb 7, 2019
1 parent 4799c3a commit 79b024f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dopamine/agents/dqn/configs/dqn_cartpole.gin
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Runner.create_environment_fn = @gym_lib.create_gym_environment
Runner.num_iterations = 500
Runner.training_steps = 1000
Runner.evaluation_steps = 1000
Runner.max_steps_per_episode = 500
Runner.max_steps_per_episode = 200 # Default max episode length.

WrappedReplayBuffer.replay_capacity = 50000
WrappedReplayBuffer.batch_size = 128
2 changes: 1 addition & 1 deletion dopamine/agents/rainbow/configs/c51_cartpole.gin
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Runner.create_environment_fn = @gym_lib.create_gym_environment
Runner.num_iterations = 500
Runner.training_steps = 1000
Runner.evaluation_steps = 1000
Runner.max_steps_per_episode = 500
Runner.max_steps_per_episode = 200 # Default max episode length.

WrappedPrioritizedReplayBuffer.replay_capacity = 50000
WrappedPrioritizedReplayBuffer.batch_size = 128
2 changes: 1 addition & 1 deletion dopamine/agents/rainbow/configs/rainbow_cartpole.gin
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Runner.create_environment_fn = @gym_lib.create_gym_environment
Runner.num_iterations = 500
Runner.training_steps = 1000
Runner.evaluation_steps = 1000
Runner.max_steps_per_episode = 500
Runner.max_steps_per_episode = 200 # Default max episode length.

WrappedPrioritizedReplayBuffer.replay_capacity = 50000
WrappedPrioritizedReplayBuffer.batch_size = 128
20 changes: 9 additions & 11 deletions dopamine/colab/cartpole.ipynb

Large diffs are not rendered by default.

0 comments on commit 79b024f

Please sign in to comment.