mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 02:24:17 +02:00
bug fix for the print function in samplers.py
This commit is contained in:
parent
6537771649
commit
a4db6d68a6
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ class Metropolis_Hastings:
|
||||||
self.model._log_det_jacobian()
|
self.model._log_det_jacobian()
|
||||||
accepted = np.zeros(Ntotal,dtype=np.bool)
|
accepted = np.zeros(Ntotal,dtype=np.bool)
|
||||||
for it in range(Ntotal):
|
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()
|
sys.stdout.flush()
|
||||||
prop = np.random.multivariate_normal(current, self.cov*self.scale*self.scale)
|
prop = np.random.multivariate_normal(current, self.cov*self.scale*self.scale)
|
||||||
self.model.optimizer_array = prop
|
self.model.optimizer_array = prop
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue