Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhangliu committed Sep 8, 2023
1 parent 83878e0 commit 9ae82ca
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,10 @@ Note: Some extra packages should be installed manually for further usage.
```python
import xuanpolicy as xp

runner = xp.get_runner(method='dqn', env='classic_control', env_id='CartPole-v1', is_test=False)
runner = xp.get_runner(method='dqn',
env='classic_control',
env_id='CartPole-v1',
is_test=False)
runner.run()
```

Expand All @@ -291,7 +294,10 @@ runner.run()
```python
import xuanpolicy as xp

runner_test = xp.get_runner(method='dqn', env='classic_control', env_id='CartPole-v1', is_test=True)
runner_test = xp.get_runner(method='dqn',
env='classic_control',
env_id='CartPole-v1',
is_test=True)
runner_test.run()
```

Expand Down

0 comments on commit 9ae82ca

Please sign in to comment.