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
48076063
Commit
48076063
authored
Aug 11, 2018
by
Martin Reinecke
Browse files
add more minimizers
parent
8251835d
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_3.py
View file @
48076063
...
...
@@ -50,7 +50,7 @@ if __name__ == '__main__':
# correlated_field = ift.CorrelatedField(position_space, A)
# apply some nonlinearity
signal
=
correlated_field
.
positive_tanh
(
)
signal
=
ift
.
positive_tanh
(
correlated_field
)
# Building the Line of Sight response
LOS_starts
,
LOS_ends
=
get_random_LOS
(
100
)
...
...
@@ -76,7 +76,8 @@ if __name__ == '__main__':
ic_sampling
=
ift
.
GradientNormController
(
iteration_limit
=
100
)
ic_newton
=
ift
.
GradientNormController
(
name
=
'Newton'
,
iteration_limit
=
100
)
minimizer
=
ift
.
RelaxedNewton
(
ic_newton
)
# minimizer = ift.NewtonCG(1e-5, 10, True)
# minimizer = ift.VL_BFGS(ic_newton)
# minimizer = ift.NewtonCG(1e-10, 100, True)
# minimizer = ift.L_BFGS_B(1e-10, 1e-5, 100, 10, True)
# build model Hamiltonian
...
...
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