mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-27 14:25:16 +02:00
[verbose opt] messages would be overwritten when using ipython_notebooks, fixed
This commit is contained in:
parent
07e85042ec
commit
be3c8f5202
1 changed files with 1 additions and 2 deletions
|
|
@ -12,12 +12,11 @@ def exponents(fnow, current_grad):
|
|||
|
||||
class VerboseOptimization(object):
|
||||
def __init__(self, model, opt, maxiters, verbose=True, current_iteration=0, ipython_notebook=False):
|
||||
self.verbose = verbose or ipython_notebook
|
||||
self.verbose = verbose
|
||||
self.ipython_notebook = ipython_notebook
|
||||
if self.verbose:
|
||||
self.model = model
|
||||
self.iteration = current_iteration
|
||||
self.ipython_notebook = ipython_notebook
|
||||
self.p_iter = self.iteration
|
||||
self.maxiters = maxiters
|
||||
self.len_maxiters = len(str(maxiters))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue