mirror of https://github.com/davisking/dlib.git
Minor fix: print to console only if the verbose flag is on (#1980)
This commit is contained in:
parent
d766f5e82e
commit
356bba38fe
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue