File size: 5,039 Bytes
62e03a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
2023-02-20 21:31:53 - r - INFO: - Hyperparameters:
2023-02-20 21:31:53 - r - INFO: - ================================================================================
2023-02-20 21:31:53 - r - INFO: -         Name        	       Value        	        Type        
2023-02-20 21:31:53 - r - INFO: -       env_name      	    CartPole-v1     	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -     new_step_api    	         1          	   <class 'bool'>   
2023-02-20 21:31:53 - r - INFO: -       wrapper       	        None        	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -        render       	         0          	   <class 'bool'>   
2023-02-20 21:31:53 - r - INFO: -      algo_name      	        PPO         	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -         mode        	        test        	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -         seed        	         1          	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -        device       	        cuda        	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -      train_eps      	        200         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -       test_eps      	         10         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -       eval_eps      	         10         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -   eval_per_episode  	         5          	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -      max_steps      	        200         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -   load_checkpoint   	         1          	   <class 'bool'>   
2023-02-20 21:31:53 - r - INFO: -      load_path      	Train_CartPole-v1_PPO_20230220-212959	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -       show_fig      	         0          	   <class 'bool'>   
2023-02-20 21:31:53 - r - INFO: -       save_fig      	         1          	   <class 'bool'>   
2023-02-20 21:31:53 - r - INFO: -       ppo_type      	        clip        	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -      continuous     	         0          	   <class 'bool'>   
2023-02-20 21:31:53 - r - INFO: -        gamma        	        0.99        	  <class 'float'>   
2023-02-20 21:31:53 - r - INFO: -       k_epochs      	         4          	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -       actor_lr      	       0.0003       	  <class 'float'>   
2023-02-20 21:31:53 - r - INFO: -      critic_lr      	       0.001        	  <class 'float'>   
2023-02-20 21:31:53 - r - INFO: -       eps_clip      	        0.2         	  <class 'float'>   
2023-02-20 21:31:53 - r - INFO: -     entropy_coef    	        0.01        	  <class 'float'>   
2023-02-20 21:31:53 - r - INFO: -   train_batch_size  	        256         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -    sgd_batch_size   	        128         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -   actor_hidden_dim  	        256         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -  critic_hidden_dim  	        256         	   <class 'int'>    
2023-02-20 21:31:53 - r - INFO: -       task_dir      	C:\Users\24438\Desktop\rl-tutorials\joyrl/tasks/Test_CartPole-v1_PPO_20230220-213153	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -      model_dir      	C:\Users\24438\Desktop\rl-tutorials\joyrl/tasks/Test_CartPole-v1_PPO_20230220-213153/models	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -       res_dir       	C:\Users\24438\Desktop\rl-tutorials\joyrl/tasks/Test_CartPole-v1_PPO_20230220-213153/results	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -       log_dir       	C:\Users\24438\Desktop\rl-tutorials\joyrl/tasks/Test_CartPole-v1_PPO_20230220-213153/logs	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: -       traj_dir      	C:\Users\24438\Desktop\rl-tutorials\joyrl/tasks/Test_CartPole-v1_PPO_20230220-213153/traj	   <class 'str'>    
2023-02-20 21:31:53 - r - INFO: - ================================================================================
2023-02-20 21:31:53 - r - INFO: - n_states: 4, n_actions: 2
2023-02-20 21:31:54 - r - INFO: - Start testing!
2023-02-20 21:31:54 - r - INFO: - Env: CartPole-v1, Algorithm: PPO, Device: cuda
2023-02-20 21:31:55 - r - INFO: - Episode: 1/10, Reward: 200.000, Step: 200
2023-02-20 21:31:55 - r - INFO: - Episode: 2/10, Reward: 200.000, Step: 200
2023-02-20 21:31:56 - r - INFO: - Episode: 3/10, Reward: 200.000, Step: 200
2023-02-20 21:31:56 - r - INFO: - Episode: 4/10, Reward: 200.000, Step: 200
2023-02-20 21:31:56 - r - INFO: - Episode: 5/10, Reward: 200.000, Step: 200
2023-02-20 21:31:56 - r - INFO: - Episode: 6/10, Reward: 200.000, Step: 200
2023-02-20 21:31:56 - r - INFO: - Episode: 7/10, Reward: 200.000, Step: 200
2023-02-20 21:31:57 - r - INFO: - Episode: 8/10, Reward: 200.000, Step: 200
2023-02-20 21:31:57 - r - INFO: - Episode: 9/10, Reward: 200.000, Step: 200
2023-02-20 21:31:57 - r - INFO: - Episode: 10/10, Reward: 189.000, Step: 189
2023-02-20 21:31:57 - r - INFO: - Finish testing!