Upload . with huggingface_hub
Browse files- README.md +6 -42
- hyperparameters.json +1 -0
- model.pt +2 -2
- replay.mp4 +0 -0
- results.json +1 -1
README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1 |
---
|
2 |
tags:
|
3 |
- CartPole-v1
|
4 |
-
-
|
5 |
-
- deep-reinforcement-learning
|
6 |
- reinforcement-learning
|
7 |
- custom-implementation
|
8 |
- deep-rl-class
|
9 |
model-index:
|
10 |
-
- name:
|
11 |
results:
|
12 |
- task:
|
13 |
type: reinforcement-learning
|
@@ -17,47 +16,12 @@ model-index:
|
|
17 |
type: CartPole-v1
|
18 |
metrics:
|
19 |
- type: mean_reward
|
20 |
-
value:
|
21 |
name: mean_reward
|
22 |
verified: false
|
23 |
---
|
24 |
|
25 |
-
#
|
26 |
-
|
27 |
-
|
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 |
-
{'f': '/root/.local/share/jupyter/runtime/kernel-fbe28e80-06f3-4c7b-af34-ae8d70502964.json'
|
33 |
-
'exp_name': 'PPO_experiment_001'
|
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': 'ThomasSimonini/ppo-CartPole-v1'
|
60 |
-
'batch_size': 512
|
61 |
-
'minibatch_size': 128}
|
62 |
-
```
|
63 |
|
|
|
1 |
---
|
2 |
tags:
|
3 |
- CartPole-v1
|
4 |
+
- reinforce
|
|
|
5 |
- reinforcement-learning
|
6 |
- custom-implementation
|
7 |
- deep-rl-class
|
8 |
model-index:
|
9 |
+
- name: ppo-CartPole-v1
|
10 |
results:
|
11 |
- task:
|
12 |
type: reinforcement-learning
|
|
|
16 |
type: CartPole-v1
|
17 |
metrics:
|
18 |
- type: mean_reward
|
19 |
+
value: 500.00 +/- 0.00
|
20 |
name: mean_reward
|
21 |
verified: false
|
22 |
---
|
23 |
|
24 |
+
# **Reinforce** Agent playing **CartPole-v1**
|
25 |
+
This is a trained model of a **Reinforce** agent playing **CartPole-v1** .
|
26 |
+
To learn to use this model and train yours check Unit 4 of the Deep Reinforcement Learning Course: https://huggingface.co/deep-rl-course/unit4/introduction
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
hyperparameters.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"h_size": 16, "n_training_episodes": 1000, "n_evaluation_episodes": 10, "max_t": 1000, "gamma": 1.0, "lr": 0.01, "env_id": "CartPole-v1", "state_space": 4, "action_space": 2}
|
model.pt
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b39f8c382b211832240c0f32d696b2a8b376a08b608f057ab5833465a7393798
|
3 |
+
size 2579
|
replay.mp4
CHANGED
Binary files a/replay.mp4 and b/replay.mp4 differ
|
|
results.json
CHANGED
@@ -1 +1 @@
|
|
1 |
-
{"env_id": "CartPole-v1", "mean_reward":
|
|
|
1 |
+
{"env_id": "CartPole-v1", "mean_reward": 500.0, "n_evaluation_episodes": 10, "eval_datetime": "2023-03-29T07:00:37.624017"}
|