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
34ed0cd4
Commit
34ed0cd4
authored
Mar 23, 2020
by
Martin Reinecke
Browse files
fix
parent
85d634c3
Pipeline
#71232
passed with stages
in 17 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty6/minimization/metric_gaussian_kl.py
View file @
34ed0cd4
...
...
@@ -187,7 +187,7 @@ class MetricGaussianKL(Energy):
random
.
pop_sseq
()
_samples
=
tuple
(
_samples
)
else
:
if
len
(
_samples
)
!=
self
.
_
n_samples
:
if
len
(
_samples
)
!=
self
.
_
hi
-
self
.
_lo
:
raise
ValueError
(
"# of samples mismatch"
)
self
.
_samples
=
_samples
self
.
_lin
=
Linearization
.
make_partial_var
(
mean
,
self
.
_constants
)
...
...
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