Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
9970fc88
Commit
9970fc88
authored
Aug 19, 2017
by
Martin Reinecke
Browse files
adjust
parent
dd3b24aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/minimization/relaxed_newton.py
View file @
9970fc88
...
...
@@ -22,15 +22,10 @@ from .line_searching import LineSearchStrongWolfe
class
RelaxedNewton
(
DescentMinimizer
):
def
__init__
(
self
,
line_searcher
=
LineSearchStrongWolfe
(),
callback
=
None
,
convergence_tolerance
=
1E-4
,
convergence_level
=
3
,
iteration_limit
=
None
):
def
__init__
(
self
,
controller
,
line_searcher
=
LineSearchStrongWolfe
()):
super
(
RelaxedNewton
,
self
).
__init__
(
line_searcher
=
line_searcher
,
callback
=
callback
,
convergence_tolerance
=
convergence_tolerance
,
convergence_level
=
convergence_level
,
iteration_limit
=
iteration_limit
)
controller
=
controller
,
line_searcher
=
line_searcher
)
self
.
line_searcher
.
preferred_initial_step_size
=
1.
...
...
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