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
707ea130
Commit
707ea130
authored
Jun 10, 2021
by
Philipp Arras
Browse files
Docstring
parent
be37e853
Pipeline
#103257
passed with stages
in 15 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/library/variational_models.py
View file @
707ea130
...
...
@@ -210,6 +210,9 @@ class GaussianEntropy(EnergyOperator):
"""Entropy of a Gaussian distribution given the diagonal of a triangular
decomposition of the covariance.
As metric a `SandwichOperator` of the Jacobian is used. This is not a
proper Fisher metric but may be useful for second order minimization.
Parameters
----------
domain: Domain FIXME
...
...
@@ -226,7 +229,6 @@ class GaussianEntropy(EnergyOperator):
return
res
if
not
x
.
want_metric
:
return
res
# FIXME not sure about metric
return
res
.
add_metric
(
SandwichOperator
.
make
(
res
.
jac
))
...
...
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