Skip to content
GitLab
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
216f3aa8
Commit
216f3aa8
authored
Jun 26, 2020
by
Martin Reinecke
Browse files
cleanup
parent
94ea7638
Pipeline
#77896
passed with stages
in 12 minutes and 5 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
nifty6/minimization/line_search.py
View file @
216f3aa8
...
...
@@ -216,8 +216,7 @@ class LineSearch(metaclass=NiftyMeta):
alpha1
=
(
alpha0
+
alpha1
)
/
2
continue
# next iteration
if
(
np
.
isinf
(
phi_alpha1
)
or
np
.
isnan
(
phi_alpha1
)
or
np
.
abs
(
phi_alpha1
)
>
1e100
):
# also backtrack
if
np
.
isnan
(
phi_alpha1
)
or
np
.
abs
(
phi_alpha1
)
>
1e100
:
# also backtrack
alpha1
=
(
alpha0
+
alpha1
)
/
2
continue
# next iteration
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment