Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
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
builtins
import
*
from
..minimization.energy
import
Energy
from
..minimization.energy
import
Energy
from
..utilities
import
memo
from
..utilities
import
memo
,
my_sum
class
SampledKullbachLeiblerDivergence
(
Energy
):
class
SampledKullbachLeiblerDivergence
(
Energy
):
...
...
nifty5/minimization/energy.py
View file @
cc115946
...
@@ -130,6 +130,7 @@ class Energy(NiftyMetaBase()):
...
@@ -130,6 +130,7 @@ class Energy(NiftyMetaBase()):
return
None
return
None
def
makeInvertible
(
self
,
controller
,
preconditioner
=
None
):
def
makeInvertible
(
self
,
controller
,
preconditioner
=
None
):
from
.iteration_controller
import
IterationController
if
not
isinstance
(
controller
,
IterationController
):
if
not
isinstance
(
controller
,
IterationController
):
raise
TypeError
raise
TypeError
return
CurvatureInversionEnabler
(
self
,
controller
,
preconditioner
)
return
CurvatureInversionEnabler
(
self
,
controller
,
preconditioner
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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