From ec13f359eb0e4d84069feb35abedd943d1aef6d9 Mon Sep 17 00:00:00 2001 From: Nicolo Fusi Date: Tue, 15 Jan 2013 15:37:14 +0000 Subject: [PATCH] fixed index --- GPy/inference/SGD.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/inference/SGD.py b/GPy/inference/SGD.py index a69ef40a..e1c7704c 100644 --- a/GPy/inference/SGD.py +++ b/GPy/inference/SGD.py @@ -187,6 +187,6 @@ class opt_SGD(Optimizer): self.trace.append(self.f_opt) if self.messages != 0: sys.stdout.write('\r' + ' '*len(status)*2 + ' \r') - status = "SGD Iteration: {0: 3d}/{1: 3d} f: {2: 2.3f}\n".format(it, self.iterations, self.f_opt) + status = "SGD Iteration: {0: 3d}/{1: 3d} f: {2: 2.3f}\n".format(it+1, self.iterations, self.f_opt) sys.stdout.write(status) sys.stdout.flush()