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
ea74ecaa
Commit
ea74ecaa
authored
3 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
c9687c8a
No related branches found
No related tags found
2 merge requests
!755
Draft: Resolve "correlated Field model linearization adjoint very slow if total_N != 0"
,
!663
Backports nifty8 -> nifty7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/minimization/kl_energies.py
+5
-5
5 additions, 5 deletions
src/minimization/kl_energies.py
with
5 additions
and
5 deletions
src/minimization/kl_energies.py
+
5
−
5
View file @
ea74ecaa
...
@@ -416,7 +416,7 @@ def MetricGaussianKL(mean, hamiltonian, n_samples, mirror_samples, constants=[],
...
@@ -416,7 +416,7 @@ def MetricGaussianKL(mean, hamiltonian, n_samples, mirror_samples, constants=[],
def
GeoMetricKL
(
mean
,
hamiltonian
,
n_samples
,
minimizer_samp
,
mirror_samples
,
def
GeoMetricKL
(
mean
,
hamiltonian
,
n_samples
,
minimizer_samp
,
mirror_samples
,
start_from_lin
=
True
,
constants
=
[],
point_estimates
=
[],
start_from_lin
=
True
,
constants
=
[],
point_estimates
=
[],
napprox
=
0
,
comm
=
None
,
nanisinf
=
True
):
napprox
=
0
,
comm
=
None
,
nanisinf
=
True
):
"""
Provides the sampled Kullback-Leibler used in geometric Variational
"""
Provides the sampled Kullback-Leibler used in geometric Variational
Inference (geoVI).
Inference (geoVI).
...
@@ -487,10 +487,10 @@ def GeoMetricKL(mean, hamiltonian, n_samples, minimizer_samp, mirror_samples,
...
@@ -487,10 +487,10 @@ def GeoMetricKL(mean, hamiltonian, n_samples, minimizer_samp, mirror_samples,
As in MGVI, mirroring samples can help to stabilize the latent mean as it
As in MGVI, mirroring samples can help to stabilize the latent mean as it
reduces sampling noise. But unlike MGVI a mirrored sample involves an
reduces sampling noise. But unlike MGVI a mirrored sample involves an
additional solve of the non-linear transformation. Therefore, when using
additional solve of the non-linear transformation. Therefore, when using
MPI, the mirrored samples also get distributed if enough tasks are
available.
MPI, the mirrored samples also get distributed if enough tasks are
If there are more total samples than tasks, the mirrored
counterparts
available.
If there are more total samples than tasks, the mirrored
try to reside on the same task as their non mirrored partners.
This ensures
counterparts
try to reside on the same task as their non mirrored partners.
that at least the starting position can be re-used.
This ensures
that at least the starting position can be re-used.
See also
See also
--------
--------
...
...
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