Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ift
NIFTy
Commits
3c3518b2
Commit
3c3518b2
authored
4 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Update description
parent
6b98ae93
No related branches found
No related tags found
2 merge requests
!648
Work on vi visualized
,
!604
Parametric MGVI
Pipeline
#103332
passed
4 years ago
Stage: static_checks
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
demos/variational_inference_visualized.py
+7
-7
7 additions, 7 deletions
demos/variational_inference_visualized.py
with
7 additions
and
7 deletions
demos/variational_inference_visualized.py
+
7
−
7
View file @
3c3518b2
...
...
@@ -19,13 +19,13 @@
###############################################################################
# Variational Inference (VI)
#
# This script demonstrates how MGVI
and
GeoVI
work for an inference problem
# with only two real quantities of interest. This
enables us to plot the
# posterior probability density as two-dimensional plot.
The approximate
# posterior samples are contrasted with the maximum-a-posterior
(MAP) solution
# together with samples drawn with the Laplace method. This
method uses the
# local curvature at the MAP solution as inverse covariance of
a Gaussian
# probability density.
# This script demonstrates how MGVI
,
GeoVI
, MeanfieldVI and FullCovarianceVI
#
work for an inference problem
with only two real quantities of interest. This
#
enables us to plot the
posterior probability density as two-dimensional plot.
#
The approximate
posterior samples are contrasted with the maximum-a-posterior
#
(MAP) solution
together with samples drawn with the Laplace method. This
#
method uses the
local curvature at the MAP solution as inverse covariance of
#
a Gaussian
probability density.
###############################################################################
import
numpy
as
np
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment