mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-15 06:52:39 +02:00
handling printouts without messages
This commit is contained in:
parent
dc545bd9cc
commit
32034872af
1 changed files with 1 additions and 1 deletions
|
|
@ -71,8 +71,8 @@ def SCG(f, gradf, x, optargs=(), maxiters=500, max_f_eval=500, display=True, xto
|
|||
|
||||
iteration = 0
|
||||
|
||||
len_maxiters = len(str(maxiters))
|
||||
if display:
|
||||
len_maxiters = len(str(maxiters))
|
||||
print ' {0:{mi}s} {1:11s} {2:11s} {3:11s}'.format("I", "F", "Scale", "|g|", mi=len_maxiters)
|
||||
|
||||
# Main optimization loop.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue