[opt] bugfix

This commit is contained in:
Max Zwiessele 2015-01-13 15:07:24 +00:00
parent be3c8f5202
commit 7fbbdafdbf

View file

@ -129,7 +129,7 @@ class VerboseOptimization(object):
self.current_gradient = np.nan
def __exit__(self, type, value, traceback):
if self.verbose or self.ipython_notebook:
if self.verbose:
self.stop = time.time()
self.model.remove_observer(self)
self.print_out()