coyotespike
commited on
Commit
•
53d9634
1
Parent(s):
8d2dcd0
Push Q-Learning agent to Hub
Browse files- .gitattributes +1 -0
- README.md +36 -0
- q-learning.pkl +3 -0
- replay.mp4 +3 -0
- results.json +1 -0
.gitattributes
CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- FrozenLake-v1-8x8-no_slippery
|
4 |
+
- q-learning
|
5 |
+
- reinforcement-learning
|
6 |
+
- custom-implementation
|
7 |
+
model-index:
|
8 |
+
- name: q-FrozenLake-v1-8x8-noSlippery
|
9 |
+
results:
|
10 |
+
- task:
|
11 |
+
type: reinforcement-learning
|
12 |
+
name: reinforcement-learning
|
13 |
+
dataset:
|
14 |
+
name: FrozenLake-v1-8x8-no_slippery
|
15 |
+
type: FrozenLake-v1-8x8-no_slippery
|
16 |
+
metrics:
|
17 |
+
- type: mean_reward
|
18 |
+
value: 1.00 +/- 0.00
|
19 |
+
name: mean_reward
|
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 |
+
model = load_from_hub(repo_id="coyotespike/q-FrozenLake-v1-8x8-noSlippery", 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 |
+
```
|
36 |
+
|
q-learning.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af2c252ca34e1ef22f1e0108a7055a768fbe81b157303e9bb983894d6a8d3998
|
3 |
+
size 2453
|
replay.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d98d88c5c2affc8886169c90f7f2f4f78018dc69ff5e47eb39952f91953c749c
|
3 |
+
size 121284
|
results.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"env_id": "FrozenLake-v1", "mean_reward": 1.0, "n_eval_episodes": 1000, "eval_datetime": "2022-12-20T17:48:24.936714"}
|