From 5f1eaf1e64d67a5d3d7433770a9bb69ff7197406 Mon Sep 17 00:00:00 2001 From: Andreas Date: Mon, 20 May 2013 11:51:56 +0100 Subject: [PATCH] Removed fisrt prints if display is off --- GPy/inference/SCG.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/GPy/inference/SCG.py b/GPy/inference/SCG.py index f190d002..83ea054f 100644 --- a/GPy/inference/SCG.py +++ b/GPy/inference/SCG.py @@ -39,8 +39,10 @@ def SCG(f, gradf, x, optargs=(), maxiters=500, max_f_eval=500, display=True, xto function_eval number of fn evaluations status: string describing convergence status """ - print " SCG" - print ' {0:{mi}s} {1:11s} {2:11s} {3:11s}'.format("I", "F", "Scale", "|g|", mi=len(str(maxiters))) + + if display: + print " SCG" + print ' {0:{mi}s} {1:11s} {2:11s} {3:11s}'.format("I", "F", "Scale", "|g|", mi=len(str(maxiters))) if xtol is None: xtol = 1e-6