Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exercise_4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cp1_ws19
exercise_4
Commits
2b106c10
Commit
2b106c10
authored
5 years ago
by
Kevin Höllring
Browse files
Options
Downloads
Patches
Plain Diff
Fix gradient descent
parent
de3dfe7c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test_gradient_descent.cpp
+2
-2
2 additions, 2 deletions
src/test_gradient_descent.cpp
with
2 additions
and
2 deletions
src/test_gradient_descent.cpp
+
2
−
2
View file @
2b106c10
...
...
@@ -12,7 +12,7 @@
#include
<string>
#include
<vector>
TEST_CASE
(
"Gradient Descent on functions with
one
dimensional argument"
,
TEST_CASE
(
"Gradient Descent on functions with
multi-
dimensional argument"
,
"[gradient_descent]"
)
{
using
namespace
numerics
;
using
std
::
cerr
;
...
...
@@ -20,7 +20,7 @@ TEST_CASE("Gradient Descent on functions with one dimensional argument",
using
std
::
endl
;
FivePointDifferentiator
fp
;
double
step
=
1e-4
;
GradientDescent
optimizer
(
step
);
GradientDescent
optimizer
(
fp
,
step
);
Coordinate
<
double
>
position1
(
1
),
position2
(
2
),
ref2
(
2
),
res1
(
1
),
res2
(
2
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment