File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
examples/acrobot-qtable/src/bin Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ fn main() {
67
67
n_arm_digitization: usize = @"N_ARM_DIGITIZATION" || 15 ;
68
68
n_pendulum_digitization: usize = @"N_PENDULUM_DIGITIZATION" || 16 ;
69
69
max_episodes: usize = @"MAX_EPISODES" || 1000000 ;
70
- episode_length: usize = @"EPISODE_LENGTH" || 5000 ;
70
+ episode_length: usize = @"EPISODE_LENGTH" || 6000 ;
71
71
model_save_interval: usize = @"MODEL_LOG_INTERVAL" || 10000 ;
72
72
model_restore_file: std:: path:: PathBuf = @"MODEL_RESTORE_FILE" ;
73
73
model_save_directory: std:: path:: PathBuf = @"MODEL_LOG_DIRECTORY" || std:: env:: current_dir( ) . unwrap( )
@@ -77,7 +77,7 @@ fn main() {
77
77
78
78
std:: fs:: create_dir_all ( & model_save_directory) . expect ( "Failed to create model log directory" ) ;
79
79
80
- print ! ( "loading environment and agent..." ) ;
80
+ print ! ( "----> loading environment and agent..." ) ;
81
81
std:: io:: Write :: flush ( & mut std:: io:: stdout ( ) ) . unwrap ( ) ;
82
82
83
83
let mut env = oxide_control:: Environment :: new (
@@ -171,7 +171,7 @@ fn main() {
171
171
) ;
172
172
}
173
173
if episode % model_save_interval == 0 {
174
- print ! ( "[episode {episode:>7}] saveing agent as a file..." ) ;
174
+ print ! ( "----> saveing current agent as a file..." ) ;
175
175
std:: io:: Write :: flush ( & mut std:: io:: stdout ( ) ) . unwrap ( ) ;
176
176
agent
177
177
. save ( model_save_directory. join ( format ! ( "agent_{episode}@{}.json" , episode_reward. round( ) as usize ) ) )
You can’t perform that action at this time.
0 commit comments