micdestefano
commited on
Commit
·
e87beef
1
Parent(s):
ad02c37
Push agent to the Hub
Browse files- README.md +69 -0
- logs/events.out.tfevents.1703785385.deathstar.35687.0 +3 -0
- model.pt +3 -0
- replay.mp4 +0 -0
- results.json +1 -0
README.md
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- LunarLander-v2
|
4 |
+
- ppo
|
5 |
+
- deep-reinforcement-learning
|
6 |
+
- reinforcement-learning
|
7 |
+
- custom-implementation
|
8 |
+
- deep-rl-course
|
9 |
+
model-index:
|
10 |
+
- name: PPO
|
11 |
+
results:
|
12 |
+
- task:
|
13 |
+
type: reinforcement-learning
|
14 |
+
name: reinforcement-learning
|
15 |
+
dataset:
|
16 |
+
name: LunarLander-v2
|
17 |
+
type: LunarLander-v2
|
18 |
+
metrics:
|
19 |
+
- type: mean_reward
|
20 |
+
value: 301.97 +/- 19.65
|
21 |
+
name: mean_reward
|
22 |
+
verified: false
|
23 |
+
---
|
24 |
+
|
25 |
+
# PPO Agent Playing LunarLander-v2
|
26 |
+
|
27 |
+
This is a trained model of a PPO agent playing LunarLander-v2.
|
28 |
+
The agent has been trained with a custom PPO implementation inspired to
|
29 |
+
[a tutorial by Costa Huang](https://www.youtube.com/watch?v=MEt6rrxH8W4).
|
30 |
+
|
31 |
+
This work is related to Unit 8, part 1 of the Hugging Face Deep RL course. I had to slightly modify
|
32 |
+
some pieces of the provided notebook, because I used gymnasium and not gym.
|
33 |
+
Furthermore, the PPO implementation is available on GitHub, here:
|
34 |
+
[https://github.com/micdestefano/micppo](https://github.com/micdestefano/micppo).
|
35 |
+
|
36 |
+
# Hyperparameters
|
37 |
+
```python
|
38 |
+
{'exp_name': 'micppo'
|
39 |
+
'gym_id': 'LunarLander-v2'
|
40 |
+
'learning_rate': 0.00025
|
41 |
+
'min_learning_rate_ratio': 0.01
|
42 |
+
'seed': 1
|
43 |
+
'total_timesteps': 10000000
|
44 |
+
'torch_not_deterministic': False
|
45 |
+
'no_cuda': False
|
46 |
+
'capture_video': True
|
47 |
+
'hidden_size': 256
|
48 |
+
'num_hidden_layers': 3
|
49 |
+
'activation': 'leaky-relu'
|
50 |
+
'num_checkpoints': 4
|
51 |
+
'num_envs': 8
|
52 |
+
'num_steps': 2048
|
53 |
+
'no_lr_annealing': False
|
54 |
+
'no_gae': False
|
55 |
+
'gamma': 0.99
|
56 |
+
'gae_lambda': 0.95
|
57 |
+
'num_minibatches': 16
|
58 |
+
'num_update_epochs': 32
|
59 |
+
'no_advantage_normalization': False
|
60 |
+
'clip_coef': 0.2
|
61 |
+
'no_value_loss_clip': False
|
62 |
+
'ent_coef': 0.01
|
63 |
+
'vf_coef': 0.5
|
64 |
+
'max_grad_norm': 0.5
|
65 |
+
'target_kl': None
|
66 |
+
'batch_size': 16384
|
67 |
+
'minibatch_size': 1024}
|
68 |
+
```
|
69 |
+
|
logs/events.out.tfevents.1703785385.deathstar.35687.0
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fbc175890b8e348a28c64beddd617a2a3b949c123fc7e649306c35598fca1b4b
|
3 |
+
size 6999162
|
model.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ea465363b26e33044cf101705fc4ecab2537a6170b93ae1de9167fc3f8fc58d8
|
3 |
+
size 1608362
|
replay.mp4
ADDED
Binary file (23.8 kB). View file
|
|
results.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"env_id": "LunarLander-v2", "mean_reward": 301.97399994651295, "std_reward": 19.647541346707424, "n_evaluation_episodes": 10, "eval_datetime": "2023-12-28T23:45:12.285241"}
|