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
83d9e58f
Commit
83d9e58f
authored
Oct 15, 2019
by
Philipp Arras
Browse files
Use traditional settings for getting started. No preconditioning here
Although it is working
parent
fc889da1
Pipeline
#61919
passed with stages
in 9 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/getting_started_3.py
View file @
83d9e58f
...
...
@@ -103,8 +103,7 @@ if __name__ == '__main__':
data
=
signal_response
(
mock_position
)
+
N
.
draw_sample
()
# Minimization parameters
ic_sampling
=
ift
.
AbsDeltaEnergyController
(
0.5
,
convergence_level
=
5
,
iteration_limit
=
100
)
ic_sampling
=
ift
.
GradientNormController
(
iteration_limit
=
100
)
ic_newton
=
ift
.
GradInfNormController
(
name
=
'Newton'
,
tol
=
1e-7
,
iteration_limit
=
35
)
minimizer
=
ift
.
NewtonCG
(
ic_newton
)
...
...
@@ -129,7 +128,7 @@ if __name__ == '__main__':
# Draw new samples to approximate the KL five times
for
i
in
range
(
5
):
# Draw new samples and minimize KL
KL
=
ift
.
MetricGaussianKL
(
mean
,
H
,
N_samples
,
napprox
=
20
)
KL
=
ift
.
MetricGaussianKL
(
mean
,
H
,
N_samples
)
KL
,
convergence
=
minimizer
(
KL
)
mean
=
KL
.
position
...
...
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