Skip to content
Snippets Groups Projects
Commit 8bbab771 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup

parent d76b2046
Branches
Tags
1 merge request!428Switch to new numpy random generators
...@@ -176,8 +176,7 @@ class MetricGaussianKL(Energy): ...@@ -176,8 +176,7 @@ class MetricGaussianKL(Energy):
if _samples is None: if _samples is None:
met = hamiltonian(Linearization.make_partial_var( met = hamiltonian(Linearization.make_partial_var(
mean, self._point_estimates, True)).metric mean, self._point_estimates, True)).metric
# FIXME: should this be ">=1" instead of ">1"? if napprox >= 1:
if napprox > 1:
met._approximation = makeOp(approximation2endo(met, napprox)) met._approximation = makeOp(approximation2endo(met, napprox))
_samples = [] _samples = []
sseq = random.spawn_sseq(self._n_samples) sseq = random.spawn_sseq(self._n_samples)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment