Made the steps without progress counter reset immediately upon changing the

learning rate.
This commit is contained in:
Davis King 2016-06-05 07:45:15 -04:00
parent 72a2e8e437
commit 3c002d1cff

View File

@ -381,7 +381,10 @@ namespace dlib
DLIB_CASSERT(lr > 0,"");
wait_for_thread_to_pause();
if (learning_rate != lr)
{
steps_without_progress = 0;
previous_loss_values.clear();
}
learning_rate = lr;
lr_schedule.set_size(0);
}