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
72fbed20
Commit
72fbed20
authored
Jan 27, 2018
by
Davis King
Browse files
Made it so you can say sgd(weight_decay) to construct a sgd object.
parent
9ca26760
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
dlib/dnn/solvers.h
dlib/dnn/solvers.h
+2
-2
dlib/dnn/solvers_abstract.h
dlib/dnn/solvers_abstract.h
+2
-2
No files found.
dlib/dnn/solvers.h
View file @
72fbed20
...
@@ -14,9 +14,9 @@ namespace dlib
...
@@ -14,9 +14,9 @@ namespace dlib
{
{
public:
public:
sgd
(
explicit
sgd
(
float
weight_decay_
,
float
weight_decay_
,
float
momentum_
float
momentum_
=
0.9
)
)
{
{
weight_decay
=
weight_decay_
;
weight_decay
=
weight_decay_
;
...
...
dlib/dnn/solvers_abstract.h
View file @
72fbed20
...
@@ -103,9 +103,9 @@ namespace dlib
...
@@ -103,9 +103,9 @@ namespace dlib
- #get_momentum() == 0.9
- #get_momentum() == 0.9
!*/
!*/
sgd
(
explicit
sgd
(
float
weight_decay
,
float
weight_decay
,
float
momentum
float
momentum
=
0.9
);
);
/*!
/*!
requires
requires
...
...
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