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
4eda4d7a
Commit
4eda4d7a
authored
May 12, 2020
by
Philipp Arras
Browse files
Fixup
parent
38796733
Pipeline
#74787
failed with stages
in 20 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/sugar.py
View file @
4eda4d7a
...
...
@@ -498,7 +498,7 @@ def calculate_position(operator, output):
else
:
cov
=
1e-3
*
output
.
val
.
max
()
**
2
invcov
=
ScalingOperator
(
output
.
domain
,
cov
).
inverse
d
=
output
+
invcov
.
draw_sample
(
dtype
=
output
.
dtype
,
from_inverse
=
True
)
d
=
output
+
invcov
.
draw_sample
_with_dtype
(
dtype
=
output
.
dtype
,
from_inverse
=
True
)
lh
=
GaussianEnergy
(
d
,
invcov
)
@
operator
H
=
StandardHamiltonian
(
lh
,
ic_samp
=
GradientNormController
(
iteration_limit
=
200
))
...
...
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