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 |
+
- Taxi-v3
|
4 |
+
- q-learning
|
5 |
+
- reinforcement-learning
|
6 |
+
- custom-implementation
|
7 |
+
model-index:
|
8 |
+
- name: q-Taxi-v3
|
9 |
+
results:
|
10 |
+
- task:
|
11 |
+
type: reinforcement-learning
|
12 |
+
name: reinforcement-learning
|
13 |
+
dataset:
|
14 |
+
name: Taxi-v3
|
15 |
+
type: Taxi-v3
|
16 |
+
metrics:
|
17 |
+
- type: mean_reward
|
18 |
+
value: 7.52 +/- 2.73
|
19 |
+
name: mean_reward
|
20 |
+
verified: false
|
21 |
+
---
|
22 |
+
|
23 |
+
# **Q-Learning** Agent playing **Taxi-v3**
|
24 |
+
This is a trained model of a **Q-Learning** agent playing **Taxi-v3** .
|
25 |
+
|
26 |
+
## Usage
|
27 |
+
```python
|
28 |
+
model = load_from_hub(repo_id="Ye27/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 |
+
```
|
36 |
+
|
q-learning.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d9e8835b5ffe6c34db72faa83b0d4791ec95f63145819f16e491078c6a40438f
|
3 |
+
size 24570
|
replay.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:19c58dcb20faab9136ac23c586945acaa49c939ebfe787b3959141dd9fb3ce5e
|
3 |
+
size 106579
|
results.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"env_id": "Taxi-v3", "mean_reward": 7.52, "n_eval_episodes": 100, "eval_datetime": "2023-04-09T23:04:37.253308"}
|