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
36535068
Commit
36535068
authored
Jun 10, 2021
by
Philipp Frank
Browse files
cleanup and params
parent
55b560a6
Pipeline
#103295
passed with stages
in 17 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
demos/variational_inference_visualized.py
View file @
36535068
...
...
@@ -81,7 +81,7 @@ def main():
n_samples
=
100
minimizer
=
ift
.
NewtonCG
(
ift
.
GradientNormController
(
iteration_limit
=
2
,
name
=
'Mini'
))
ift
.
GradientNormController
(
iteration_limit
=
3
,
name
=
'Mini'
))
IC
=
ift
.
StochasticAbsDeltaEnergyController
(
0.1
,
iteration_limit
=
20
,
name
=
'advi'
)
stochastic_minimizer_mf
=
ift
.
ADVIOptimizer
(
IC
,
eta
=
0.5
)
...
...
@@ -132,7 +132,7 @@ def main():
plt
.
draw
()
plt
.
pause
(
2.0
)
for
ii
in
range
(
15
):
for
ii
in
range
(
20
):
if
ii
%
2
==
0
:
# Resample
mgkl
=
ift
.
MetricGaussianKL
(
posmg
,
ham
,
n_samples
,
False
)
...
...
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