alefarasin
commited on
Commit
•
d139a3c
1
Parent(s):
84a8723
Push Reinforce agent to the Hub
Browse files- README.md +63 -0
- logs/events.out.tfevents.1666962390.ea96f061c66c.74.4 +3 -0
- model.pt +3 -0
- replay.mp4 +0 -0
- results.json +1 -0
README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- CartPole-v1
|
4 |
+
- ppo
|
5 |
+
- deep-reinforcement-learning
|
6 |
+
- reinforcement-learning
|
7 |
+
- custom-implementation
|
8 |
+
- deep-rl-class
|
9 |
+
model-index:
|
10 |
+
- name: PPO
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
type: reinforcement-learning
|
14 |
+
name: reinforcement-learning
|
15 |
+
dataset:
|
16 |
+
name: CartPole-v1
|
17 |
+
type: CartPole-v1
|
18 |
+
metrics:
|
19 |
+
- type: mean_reward
|
20 |
+
value: 155.80 +/- 45.55
|
21 |
+
name: mean_reward
|
22 |
+
verified: false
|
23 |
+
---
|
24 |
+
|
25 |
+
# PPO Agent Playing CartPole-v1
|
26 |
+
|
27 |
+
This is a trained model of a PPO agent playing CartPole-v1.
|
28 |
+
To learn to code your own PPO agent and train it Unit 8 of the Deep Reinforcement Learning Class: https://github.com/huggingface/deep-rl-class/tree/main/unit8
|
29 |
+
|
30 |
+
# Hyperparameters
|
31 |
+
```python
|
32 |
+
{'exp_name': 'dummy_name'
|
33 |
+
'f': '/root/.local/share/jupyter/runtime/kernel-e1e9a3a5-8345-4438-b691-f71df9c2a28b.json'
|
34 |
+
'seed': 1
|
35 |
+
'torch_deterministic': True
|
36 |
+
'cuda': True
|
37 |
+
'track': False
|
38 |
+
'wandb_project_name': 'cleanRL'
|
39 |
+
'wandb_entity': None
|
40 |
+
'capture_video': False
|
41 |
+
'env_id': 'CartPole-v1'
|
42 |
+
'total_timesteps': 50000
|
43 |
+
'learning_rate': 0.00025
|
44 |
+
'num_envs': 4
|
45 |
+
'num_steps': 128
|
46 |
+
'anneal_lr': True
|
47 |
+
'gae': True
|
48 |
+
'gamma': 0.99
|
49 |
+
'gae_lambda': 0.95
|
50 |
+
'num_minibatches': 4
|
51 |
+
'update_epochs': 4
|
52 |
+
'norm_adv': True
|
53 |
+
'clip_coef': 0.2
|
54 |
+
'clip_vloss': True
|
55 |
+
'ent_coef': 0.01
|
56 |
+
'vf_coef': 0.5
|
57 |
+
'max_grad_norm': 0.5
|
58 |
+
'target_kl': None
|
59 |
+
'repo_id': 'alefarasin/ppo-CartPole-v1'
|
60 |
+
'batch_size': 512
|
61 |
+
'minibatch_size': 128}
|
62 |
+
```
|
63 |
+
|
logs/events.out.tfevents.1666962390.ea96f061c66c.74.4
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea3b7dfcf418e44f7abad015d47648ec5826765559ea183820c52b9b61285687
|
3 |
+
size 50450
|
model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c893884d8eaa71bb5a6ae2fb596667a519fb38de8559b9a14278b84327fc19e4
|
3 |
+
size 40129
|
replay.mp4
ADDED
Binary file (19 kB). View file
|
|
results.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"env_id": "CartPole-v1", "mean_reward": 155.8, "std_reward": 45.549533477303584, "n_evaluation_episodes": 10, "eval_datetime": "2022-10-28T13:06:51.368270"}
|