markeidsaune
commited on
Commit
•
4e61b89
1
Parent(s):
3f61b56
Update README.md
Browse files
README.md
CHANGED
@@ -20,18 +20,18 @@ model-index:
|
|
20 |
verified: false
|
21 |
---
|
22 |
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
33 |
|
34 |
-
|
35 |
|
36 |
-
|
37 |
|
|
|
20 |
verified: false
|
21 |
---
|
22 |
|
23 |
+
# **Q-Learning** Agent playing **FrozenLake-v1**
|
24 |
+
This is a trained model of a **Q-Learning** agent playing **FrozenLake-v1** .
|
25 |
|
26 |
+
## Usage
|
27 |
+
```python
|
28 |
|
29 |
+
model = load_from_hub(repo_id="markeidsaune/q-FrozenLake-v1-8x8-Slippery", filename="q-learning.pkl")
|
30 |
|
31 |
+
# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
|
32 |
+
env = gym.make(model["env_id"])
|
33 |
|
34 |
+
evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["qtable"], model["eval_seed"])
|
35 |
|
36 |
+
```
|
37 |
|