Commit 026278df authored by Martin Reinecke's avatar Martin Reinecke

typo

parent c3d6f0e5
......@@ -60,7 +60,7 @@ class MetricGaussianKL(Energy):
(in preparation)
"""
def __init__(self, mean, hamiltonian, n_sampels, constants=[],
def __init__(self, mean, hamiltonian, n_samples, constants=[],
point_estimates=None, mirror_samples=False,
_samples=None):
super(MetricGaussianKL, self).__init__(mean)
......@@ -75,7 +75,7 @@ class MetricGaussianKL(Energy):
met = hamiltonian(Linearization.make_partial_var(
mean, point_estimates, True)).metric
_samples = tuple(met.draw_sample(from_inverse=True)
for _ in range(n_sampels))
for _ in range(n_samples))
if mirror_samples:
_samples += tuple(-s for s in _samples)
self._samples = _samples
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment