Update README.md
Browse files
README.md
CHANGED
@@ -22,19 +22,19 @@ model-index:
|
|
22 |
---
|
23 |
# **Q-Learning** Agent playing **CartPole-v1**
|
24 |
|
25 |
-
This is a trained model of a **
|
26 |
|
27 |
## Usage
|
28 |
|
29 |
```python
|
30 |
|
31 |
-
model = load_from_hub(repo_id="sayby/Reinforce-CartPole-v1", filename="
|
32 |
|
33 |
# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
|
34 |
|
35 |
env = gym.make(model["env_id"])
|
36 |
|
37 |
-
evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["
|
38 |
|
39 |
|
40 |
```
|
|
|
22 |
---
|
23 |
# **Q-Learning** Agent playing **CartPole-v1**
|
24 |
|
25 |
+
This is a trained model of a **Reinforce** agent playing **CartPole-v1** .
|
26 |
|
27 |
## Usage
|
28 |
|
29 |
```python
|
30 |
|
31 |
+
model = load_from_hub(repo_id="sayby/Reinforce-CartPole-v1", filename="model.pt")
|
32 |
|
33 |
# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
|
34 |
|
35 |
env = gym.make(model["env_id"])
|
36 |
|
37 |
+
evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["eval_seed"])
|
38 |
|
39 |
|
40 |
```
|