Skip to content

Commit 93d238c

Browse files
committed
Made MCMC normal set hyperparameters for MALAMCMC
1 parent 2cb2f11 commit 93d238c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pfunk/tests/mcmc_normal.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ def _run(self, result):
7474
log_pdf, self._nchains, x0, sigma0=sigma, method=method)
7575
mcmc.set_parallel(False) # allow external parallelisation instead
7676

77+
# Set hyperparameters for selected methods
78+
if method == pints.MALAMCMC:
79+
for sampler in mcmc.samplers():
80+
# Set MALA step size
81+
sampler.set_epsilon([1.5, 1.5])
82+
7783
# Log to file
7884
if not DEBUG:
7985
mcmc.set_log_to_screen(False)

0 commit comments

Comments
 (0)