jasheershihab commited on
Commit
37de862
1 Parent(s): d393816

Push Q-Learning agent to Hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. README.md +35 -0
  3. q-learning.pkl +3 -0
  4. replay.mp4 +3 -0
  5. results.json +1 -0
.gitattributes CHANGED
@@ -29,3 +29,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zst filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
29
  *.zip filter=lfs diff=lfs merge=lfs -text
30
  *.zst filter=lfs diff=lfs merge=lfs -text
31
  *tfevents* filter=lfs diff=lfs merge=lfs -text
32
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - metrics:
11
+ - type: mean_reward
12
+ value: 7.48 +/- 2.72
13
+ name: mean_reward
14
+ task:
15
+ type: reinforcement-learning
16
+ name: reinforcement-learning
17
+ dataset:
18
+ name: Taxi-v3
19
+ type: Taxi-v3
20
+ ---
21
+
22
+ # **Q-Learning** Agent playing **Taxi-v3**
23
+ This is a trained model of a **Q-Learning** agent playing **Taxi-v3** .
24
+
25
+ ## Usage
26
+ ```python
27
+ model = load_from_hub(repo_id="jasheershihab/q-Taxi-v3", filename="q-learning.pkl")
28
+
29
+ # Don't forget to check if you need to add additional attributes (is_slippery=False etc)
30
+ env = gym.make(model["env_id"])
31
+
32
+ evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["qtable"], model["eval_seed"])
33
+
34
+ ```
35
+
q-learning.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:efa1bd3e5bbc08d0d2f2275a1b321bd7715e0ad3d9fa3828c0b890068b3cc2b2
3
+ size 24589
replay.mp4 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39899d7c43b6fee68e66fa6c5e12ca12ffb89107034d81e47a3ebf87b7345faf
3
+ size 120601
results.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"env_id": "Taxi-v3", "mean_reward": 7.48, "n_eval_episodes": 100, "eval_datetime": "2022-08-16T06:32:02.894525"}