Update README.md
Browse files
README.md
CHANGED
@@ -24,13 +24,12 @@ model-index:
|
|
24 |
This is a trained model of a **Q-Learning** agent playing **Taxi-v3** .
|
25 |
## Usage
|
26 |
|
27 |
-
|
28 |
-
|
29 |
|
30 |
-
|
31 |
-
|
32 |
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
24 |
This is a trained model of a **Q-Learning** agent playing **Taxi-v3** .
|
25 |
## Usage
|
26 |
|
27 |
+
```python
|
28 |
+
model = load_from_hub(repo_id="sayby/q-Taxi-v3", filename="q-learning.pkl")
|
29 |
|
30 |
+
# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
|
31 |
+
env = gym.make(model["env_id"])
|
32 |
|
33 |
+
evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["qtable"], model["eval_seed"])
|
34 |
+
|
35 |
+
```
|
|