From a4db6d68a6b7fc56d91a01608a0b58e0c8cf272e Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Tue, 8 Sep 2015 22:11:17 +0100 Subject: [PATCH] bug fix for the print function in samplers.py --- GPy/inference/mcmc/samplers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/inference/mcmc/samplers.py b/GPy/inference/mcmc/samplers.py index 7ca6a4c6..12939cfe 100644 --- a/GPy/inference/mcmc/samplers.py +++ b/GPy/inference/mcmc/samplers.py @@ -41,7 +41,7 @@ class Metropolis_Hastings: self.model._log_det_jacobian() accepted = np.zeros(Ntotal,dtype=np.bool) for it in range(Ntotal): - print "sample %d of %d\r"%(it,Ntotal), + print("sample %d of %d\r"%(it,Ntotal),end="\t") sys.stdout.flush() prop = np.random.multivariate_normal(current, self.cov*self.scale*self.scale) self.model.optimizer_array = prop