Bring back info for finished evalsave. Update tests with the new message.

This commit is contained in:
Tomasz Sobczyk
2020-10-24 13:46:34 +02:00
committed by nodchip
parent 4b72658409
commit b882423005
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -247,7 +247,10 @@ namespace Eval::NNUE {
// save merit function parameters to a file // save merit function parameters to a file
void save_eval(std::string dir_name) { void save_eval(std::string dir_name) {
auto eval_dir = Path::combine(Options["EvalSaveDir"], dir_name); auto eval_dir = Path::combine(Options["EvalSaveDir"], dir_name);
std::cout << "INFO (save_eval): Saving current evaluation file in " << eval_dir << std::endl;
auto out = sync_region_cout.new_region();
out << "INFO (save_eval): Saving current evaluation file in " << eval_dir << std::endl;
// mkdir() will fail if this folder already exists, but // mkdir() will fail if this folder already exists, but
// Apart from that. If not, I just want you to make it. // Apart from that. If not, I just want you to make it.
@@ -263,5 +266,6 @@ namespace Eval::NNUE {
#ifndef NDEBUG #ifndef NDEBUG
assert(result); assert(result);
#endif #endif
out << "INFO (save_eval): Saving current evaluation file in " << eval_dir << std::endl;
} }
} // namespace Eval::NNUE } // namespace Eval::NNUE
+1 -1
View File
@@ -129,7 +129,7 @@ cat << EOF > learn01.exp
send "isready\n" send "isready\n"
send "learn targetdir training_data epochs 1 sfen_read_size 100 thread_buffer_size 10 batchsize 100 use_draw_in_training 1 use_draw_in_validation 1 lr 1 eval_limit 32000 nn_batch_size 30 newbob_decay 0.5 eval_save_interval 30 loss_output_interval 10 validation_set_file_name validation_data/validation_data.bin\n" send "learn targetdir training_data epochs 1 sfen_read_size 100 thread_buffer_size 10 batchsize 100 use_draw_in_training 1 use_draw_in_validation 1 lr 1 eval_limit 32000 nn_batch_size 30 newbob_decay 0.5 eval_save_interval 30 loss_output_interval 10 validation_set_file_name validation_data/validation_data.bin\n"
expect "save_eval() finished." expect "INFO (save_eval): Saving current evaluation file in"
send "quit\n" send "quit\n"
expect eof expect eof