Commit 356bba38 authored by Juha Reunanen's avatar Juha Reunanen Committed by Davis E. King
Browse files

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

parent d766f5e8
......@@ -1047,7 +1047,9 @@ namespace dlib
// lower one instead.
if (prob_loss_increasing_thresh >= prob_loss_increasing_thresh_max_value)
{
std::cout << "(and while at it, also shrinking the learning rate)" << std::endl;
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment