Galeros commited on
Commit
4fe59d7
1 Parent(s): e5bf98f

Push Reinforce agent to the Hub

Browse files
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: 174.40 +/- 46.67
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
+ {'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
+
logs/events.out.tfevents.1678352690.6f3565962622.507.7 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8e669c4c30051679de2a11c992646825a7deb190f3b8d42312cbfbd68dccd26
3
+ size 107652
model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b16889548cc2a734518cfe265955eb0751aa930ce9f194ee84d3947d2fb9715
3
+ size 39909
replay.mp4 ADDED
Binary file (22.2 kB). View file
 
results.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"env_id": "CartPole-v1", "mean_reward": 174.4, "std_reward": 46.673761365461, "n_evaluation_episodes": 10, "eval_datetime": "2023-03-09T09:09:05.236698"}