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
7f4ca255
Commit
7f4ca255
authored
Jan 08, 2018
by
Martin Reinecke
Browse files
be more fussy about convergence
parent
dd3c67f3
Pipeline
#23417
passed with stage
in 4 minutes and 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/log_normal_wiener_filter.py
View file @
7f4ca255
...
...
@@ -47,7 +47,7 @@ if __name__ == "__main__":
# Wiener filter
m0
=
ift
.
Field
.
zeros
(
harmonic_space
)
ctrl
=
ift
.
GradientNormController
(
verbose
=
False
,
tol_abs_gradnorm
=
1
)
ctrl
=
ift
.
GradientNormController
(
verbose
=
False
,
tol_abs_gradnorm
=
0.000
1
)
ctrl2
=
ift
.
GradientNormController
(
verbose
=
True
,
tol_abs_gradnorm
=
0.1
,
name
=
"outer"
)
inverter
=
ift
.
ConjugateGradient
(
controller
=
ctrl
)
...
...
nifty/minimization/line_search_strong_wolfe.py
View file @
7f4ca255
...
...
@@ -104,7 +104,10 @@ class LineSearchStrongWolfe(LineSearch):
old_phi_0
=
f_k_minus_1
phi_0
=
le_0
.
value
phiprime_0
=
le_0
.
directional_derivative
if
phiprime_0
>=
0
:
if
phiprime_0
==
0
:
dobj
.
mprint
(
"Directional derivative is zero; assuming convergence"
)
return
energy
if
phiprime_0
>
0
:
dobj
.
mprint
(
"Error: search direction is not a descent direction"
)
raise
ValueError
(
"search direction must be a descent direction"
)
...
...
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