Skip to content

Commit 228df50

Browse files
committed
more improve train log
1 parent f272065 commit 228df50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/acrobot-qtable/src/bin/train.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn main() {
6767
n_arm_digitization: usize = @"N_ARM_DIGITIZATION" || 15;
6868
n_pendulum_digitization: usize = @"N_PENDULUM_DIGITIZATION" || 16;
6969
max_episodes: usize = @"MAX_EPISODES" || 1000000;
70-
episode_length: usize = @"EPISODE_LENGTH" || 5000;
70+
episode_length: usize = @"EPISODE_LENGTH" || 6000;
7171
model_save_interval: usize = @"MODEL_LOG_INTERVAL" || 10000;
7272
model_restore_file: std::path::PathBuf = @"MODEL_RESTORE_FILE";
7373
model_save_directory: std::path::PathBuf = @"MODEL_LOG_DIRECTORY" || std::env::current_dir().unwrap()
@@ -77,7 +77,7 @@ fn main() {
7777

7878
std::fs::create_dir_all(&model_save_directory).expect("Failed to create model log directory");
7979

80-
print!("loading environment and agent...");
80+
print!("----> loading environment and agent...");
8181
std::io::Write::flush(&mut std::io::stdout()).unwrap();
8282

8383
let mut env = oxide_control::Environment::new(
@@ -171,7 +171,7 @@ fn main() {
171171
);
172172
}
173173
if episode % model_save_interval == 0 {
174-
print!("[episode {episode:>7}] saveing agent as a file...");
174+
print!("----> saveing current agent as a file...");
175175
std::io::Write::flush(&mut std::io::stdout()).unwrap();
176176
agent
177177
.save(model_save_directory.join(format!("agent_{episode}@{}.json", episode_reward.round() as usize)))

0 commit comments

Comments
 (0)