未验证 提交 e5e1685a 编写于 作者: L LI Yunxiang 提交者: GitHub

use cartpole-v0 in dqn (#259)

* use cartpole-v0 in dqn

* Update README.md
上级 de21118e
......@@ -6,7 +6,7 @@ Based on PARL, we provide a simple demonstration of DQN.
### Result
Performance of DQN playing CartPole-v1
Performance of DQN playing CartPole-v0
<p align="left">
<img src="../QuickStart/performance.gif" alt="result" height="175"/>
......@@ -23,7 +23,7 @@ Performance of DQN playing CartPole-v1
### Start Training:
```
# To train a model for CartPole-v1 game
# To train a model for CartPole-v0 game
python train.py
```
......
examples/DQN/cartpole.jpg

64.3 KB | W: | H:

examples/DQN/cartpole.jpg

60.1 KB | W: | H:

examples/DQN/cartpole.jpg
examples/DQN/cartpole.jpg
examples/DQN/cartpole.jpg
examples/DQN/cartpole.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -73,7 +73,7 @@ def evaluate(agent, env, render=False):
def main():
env = gym.make('CartPole-v1')
env = gym.make('CartPole-v0')
action_dim = env.action_space.n
obs_shape = env.observation_space.shape
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册