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
5f6a58e2
Commit
5f6a58e2
authored
Jul 02, 2018
by
Martin Reinecke
Browse files
small tweaks
parent
f4164d98
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/energies/kl.py
View file @
5f6a58e2
...
...
@@ -24,7 +24,6 @@ class SampledKullbachLeiblerDivergence(Energy):
return
self
.
__class__
(
self
.
_h
.
at
(
position
),
self
.
_res_samples
,
self
.
_iteration_controller
)
@
property
@
memo
def
value
(
self
):
...
...
nifty5/models/multi_model.py
View file @
5f6a58e2
...
...
@@ -25,7 +25,8 @@ from .model import Model
class
MultiModel
(
Model
):
""" """
def
__init__
(
self
,
model
,
key
):
# TODO Rewrite it such that it takes a dictionary as input. Just like MultiFields.
# TODO Rewrite it such that it takes a dictionary as input.
# (just like MultiFields).
super
(
MultiModel
,
self
).
__init__
(
model
.
position
)
self
.
_model
=
model
self
.
_key
=
key
...
...
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