From 31d8823be6134eb1d540539de16c6f9d2dde357e Mon Sep 17 00:00:00 2001
From: farid <farid.mohammadi@iws.uni-stuttgart.de>
Date: Fri, 7 Jan 2022 12:24:24 +0100
Subject: [PATCH] [MCMC] increase burn-in step from 100 to 200 steps.

---
 BayesValidRox/BayesInference/MCMC.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/BayesValidRox/BayesInference/MCMC.py b/BayesValidRox/BayesInference/MCMC.py
index c52c1fa8d..985732b48 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:
-- 
GitLab