Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
bf410006
Unverified
Commit
bf410006
authored
Oct 13, 2021
by
Adrià Arrufat
Committed by
GitHub
Oct 13, 2021
Browse files
Fix dnn_trainer trying to decrease the learning rate (#2442)
parent
adca7472
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/dnn/trainer.h
dlib/dnn/trainer.h
+1
-1
No files found.
dlib/dnn/trainer.h
View file @
bf410006
...
@@ -1061,7 +1061,7 @@ namespace dlib
...
@@ -1061,7 +1061,7 @@ namespace dlib
// lower one instead.
// lower one instead.
if
(
prob_loss_increasing_thresh
>=
prob_loss_increasing_thresh_max_value
)
if
(
prob_loss_increasing_thresh
>=
prob_loss_increasing_thresh_max_value
)
{
{
if
(
verbose
)
if
(
verbose
&&
learning_rate_shrink
!=
1
)
std
::
cout
<<
"(and while at it, also shrinking the learning rate)"
<<
std
::
endl
;
std
::
cout
<<
"(and while at it, also shrinking the learning rate)"
<<
std
::
endl
;
learning_rate
=
learning_rate_shrink
*
learning_rate
;
learning_rate
=
learning_rate_shrink
*
learning_rate
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment