Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
f3d82655
Commit
f3d82655
authored
Aug 17, 2017
by
Martin Reinecke
Browse files
normalize descent direction for SteepestDescent and VL_BFGS (but not for RelaxedNewton\!)
parent
f64c8f54
Pipeline
#16770
failed with stage
in 13 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/minimization/steepest_descent.py
View file @
f3d82655
...
...
@@ -39,4 +39,6 @@ class SteepestDescent(DescentMinimizer):
"""
return
-
energy
.
gradient
res
=
energy
.
gradient
.
copy
()
res
*=
-
1.
/
res
.
norm
()
return
res
nifty/minimization/vl_bfgs.py
View file @
f3d82655
...
...
@@ -84,6 +84,7 @@ class VL_BFGS(DescentMinimizer):
for
i
in
xrange
(
1
,
len
(
delta
)):
descent_direction
+=
delta
[
i
]
*
b
[
i
]
descent_direction
*=
1.
/
descent_direction
.
norm
()
return
descent_direction
...
...
Write
Preview
Supports
Markdown
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