diff --git a/BayesValidRox/BayesInference/MCMC.py b/BayesValidRox/BayesInference/MCMC.py index c52c1fa8d69b86e085545ef74969836f287c526e..985732b48360bbaef0abf0d87a20d908302d2fa1 100755 --- a/BayesValidRox/BayesInference/MCMC.py +++ b/BayesValidRox/BayesInference/MCMC.py @@ -26,7 +26,7 @@ class MCMC(): nsteps = 1000 # number of MCMC steps to take ntemps = 20 """ - def __init__(self, BayesOpts, initsamples = None, nwalkers = 100, nburn = 100, + def __init__(self, BayesOpts, initsamples = None, nwalkers = 100, nburn = 200, nsteps = 100000, moves = None, multiprocessing=False, verbose = False): self.BayesOpts = BayesOpts @@ -160,7 +160,8 @@ class MCMC(): autocorreverynsteps = 50 # sample step by step using the generator sampler.sample - for sample in sampler.sample(pos, iterations=self.nsteps, progress=True): + for sample in sampler.sample(pos, iterations=self.nsteps,tune=True, + progress=True): # only check convergence every 10 steps (every 1000 samples) if sampler.iteration % autocorreverynsteps: