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
ecedc71f
Commit
ecedc71f
authored
6 years ago
by
Martin Reinecke
Browse files
Options
Downloads
Plain Diff
Merge branch 'cosm' into 'NIFTy_5'
Cosm See merge request ift/nifty-dev!204
parents
1a9b8429
ab3f1c2f
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/source/conf.py
+3
-1
3 additions, 1 deletion
docs/source/conf.py
docs/source/installation.rst
+2
-2
2 additions, 2 deletions
docs/source/installation.rst
nifty5/minimization/metric_gaussian_kl.py
+3
-3
3 additions, 3 deletions
nifty5/minimization/metric_gaussian_kl.py
with
8 additions
and
6 deletions
docs/source/conf.py
+
3
−
1
View file @
ecedc71f
...
...
@@ -29,4 +29,6 @@ add_module_names = False
html_theme
=
"
sphinx_rtd_theme
"
html_logo
=
'
nifty_logo_black.png
'
exclude_patterns
=
[
'
mod/modules.rst
'
,
'
mod/*version.rst
'
]
exclude_patterns
=
[
'
mod/modules.rst
'
,
'
mod/nifty5.git_version.rst
'
,
'
mod/nifty5.logger.rst
'
]
This diff is collapsed.
Click to expand it.
docs/source/installation.rst
+
2
−
2
View file @
ecedc71f
...
...
@@ -14,12 +14,12 @@ Plotting support is added via::
pip3 install --user matplotlib
FFTW support is added via:
FFTW support is added via:
:
sudo apt-get install libfftw3-dev
pip3 install --user pyfftw
To actually use FFTW in your Nifty calculations, you need to call
To actually use FFTW in your Nifty calculations, you need to call
::
nifty5.fft.enable_fftw()
...
...
This diff is collapsed.
Click to expand it.
nifty5/minimization/metric_gaussian_kl.py
+
3
−
3
View file @
ecedc71f
...
...
@@ -57,10 +57,10 @@ class MetricGaussianKL(Energy):
Notes
-----
For further details see: Metric Gaussian Variational Inference
(in preparation)
(
FIXME
in preparation)
"""
def
__init__
(
self
,
mean
,
hamiltonian
,
n_samp
e
ls
,
constants
=
[],
def
__init__
(
self
,
mean
,
hamiltonian
,
n_sampl
e
s
,
constants
=
[],
point_estimates
=
None
,
mirror_samples
=
False
,
_samples
=
None
):
super
(
MetricGaussianKL
,
self
).
__init__
(
mean
)
...
...
@@ -75,7 +75,7 @@ class MetricGaussianKL(Energy):
met
=
hamiltonian
(
Linearization
.
make_partial_var
(
mean
,
point_estimates
,
True
)).
metric
_samples
=
tuple
(
met
.
draw_sample
(
from_inverse
=
True
)
for
_
in
range
(
n_samp
e
ls
))
for
_
in
range
(
n_sampl
e
s
))
if
mirror_samples
:
_samples
+=
tuple
(
-
s
for
s
in
_samples
)
self
.
_samples
=
_samples
...
...
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