Minor fix: print to console only if the verbose flag is on (#1980)

This commit is contained in:
Juha Reunanen 2020-01-17 03:23:47 +02:00 committed by Davis E. King
parent d766f5e82e
commit 356bba38fe
1 changed files with 3 additions and 1 deletions

View File

@ -1047,7 +1047,9 @@ namespace dlib
// lower one instead.
if (prob_loss_increasing_thresh >= prob_loss_increasing_thresh_max_value)
{
if (verbose)
std::cout << "(and while at it, also shrinking the learning rate)" << std::endl;
learning_rate = learning_rate_shrink * learning_rate;
steps_without_progress = 0;
test_steps_without_progress = 0;