zjowowen commited on
Commit
9172e6f
1 Parent(s): d6375d8

Upload policy_config.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. policy_config.py +29 -0
policy_config.py ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ exp_config = {
2
+ 'type': 'ppo',
3
+ 'on_policy': True,
4
+ 'cuda': True,
5
+ 'action_space': 'discrete',
6
+ 'discount_factor': 0.99,
7
+ 'gae_lambda': 0.95,
8
+ 'epoch_per_collect': 1,
9
+ 'batch_size': 320,
10
+ 'learning_rate': 0.001,
11
+ 'lr_scheduler': [2000, 0.1],
12
+ 'weight_decay': 0,
13
+ 'value_weight': 0.5,
14
+ 'entropy_weight': 0.01,
15
+ 'clip_ratio': 0.2,
16
+ 'adv_norm': True,
17
+ 'value_norm': 'baseline',
18
+ 'ppo_param_init': True,
19
+ 'grad_norm': 0.5,
20
+ 'n_sample': 320,
21
+ 'unroll_len': 1,
22
+ 'deterministic_eval': True,
23
+ 'model': {
24
+ 'encoder_hidden_size_list': [64, 64, 128],
25
+ 'actor_head_hidden_size': 128,
26
+ 'critic_head_hidden_size': 128
27
+ },
28
+ 'cfg_type': 'PPOFPolicyDict'
29
+ }