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
cc115946
Commit
cc115946
authored
Jul 02, 2018
by
Martin Reinecke
Browse files
fixes
parent
60c6859d
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/energies/kl.py
View file @
cc115946
from
builtins
import
*
from
..minimization.energy
import
Energy
from
..utilities
import
memo
from
..utilities
import
memo
,
my_sum
class
SampledKullbachLeiblerDivergence
(
Energy
):
...
...
nifty5/minimization/energy.py
View file @
cc115946
...
...
@@ -130,6 +130,7 @@ class Energy(NiftyMetaBase()):
return
None
def
makeInvertible
(
self
,
controller
,
preconditioner
=
None
):
from
.iteration_controller
import
IterationController
if
not
isinstance
(
controller
,
IterationController
):
raise
TypeError
return
CurvatureInversionEnabler
(
self
,
controller
,
preconditioner
)
...
...
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