From 8bc31d4a9c75a492e2916c6fda1e0649eac328f8 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Thu, 16 May 2013 13:27:05 +0100 Subject: [PATCH] printing improved --- GPy/inference/SCG.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/inference/SCG.py b/GPy/inference/SCG.py index d76fcf9b..4224cb3c 100644 --- a/GPy/inference/SCG.py +++ b/GPy/inference/SCG.py @@ -111,7 +111,7 @@ def SCG(f, gradf, x, optargs=(), maxiters=500, max_f_eval=500, display=True, xto iteration += 1 if display: print '\r', - print 'i: {0:>5g} f:{1:> 12e} b:{2:> 12e} |g|:{3:> 12e}'.format(iteration, fnow, beta, current_grad), + print 'Iter: {0:>0{mi}g} Obj:{1:> 12e} Scale:{2:> 12e} |g|:{3:> 12e}'.format(iteration, float(fnow), float(beta), float(current_grad), mi=len(str(maxiters))), # print 'Iteration:', iteration, ' Objective:', fnow, ' Scale:', beta, '\r', sys.stdout.flush()