Push Reinforce agent to Hub
Browse files- .gitattributes +2 -0
- README.md +41 -0
- model.pt +3 -0
- replay.mp4 +3 -0
- results.json +3 -0
.gitattributes
CHANGED
@@ -32,3 +32,5 @@ 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
|
36 |
+
results.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- CartPole-v1
|
4 |
+
- reinforce
|
5 |
+
- reinforcement-learning
|
6 |
+
- custom-implementation
|
7 |
+
- deep-rl-class
|
8 |
+
model-index:
|
9 |
+
- name: Reinforce-CartPole-v1
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
type: reinforcement-learning
|
13 |
+
name: reinforcement-learning
|
14 |
+
dataset:
|
15 |
+
name: CartPole-v1
|
16 |
+
type: CartPole-v1
|
17 |
+
metrics:
|
18 |
+
- type: mean_reward
|
19 |
+
value: 31.55 +/- 14.99
|
20 |
+
name: mean_reward
|
21 |
+
verified: false
|
22 |
+
---
|
23 |
+
# **Q-Learning** Agent playing **CartPole-v1**
|
24 |
+
|
25 |
+
This is a trained model of a **Q-Learning** agent playing **CartPole-v1** .
|
26 |
+
|
27 |
+
## Usage
|
28 |
+
|
29 |
+
```python
|
30 |
+
|
31 |
+
model = load_from_hub(repo_id="sayby/Reinforce-CartPole-v1", filename="q-learning.pkl")
|
32 |
+
|
33 |
+
# Don't forget to check if you need to add additional attributes (is_slippery=False etc)
|
34 |
+
|
35 |
+
env = gym.make(model["env_id"])
|
36 |
+
|
37 |
+
evaluate_agent(env, model["max_steps"], model["n_eval_episodes"], model["qtable"], model["eval_seed"])
|
38 |
+
|
39 |
+
|
40 |
+
```
|
41 |
+
|
model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:855ba2a5a4c8caad7f00049831874341c5905e5ec97d7c11d62f88761f3c67d1
|
3 |
+
size 3999
|
replay.mp4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc90f0345b0127ce9d55097604db6524b3037a9bb580c4aedb91e11cf2537d21
|
3 |
+
size 7359
|
results.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af9e7a9e57bffcd5a4e6f0c82a4e857f60dc3b9ec955d5b8f85422a618d027da
|
3 |
+
size 222
|