Commit d7613c7a authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

create required directories

parent 72d5d27b
...@@ -130,9 +130,14 @@ class Optimizer(Object): ...@@ -130,9 +130,14 @@ class Optimizer(Object):'Best parameter loss:')'Best parameter loss:')
def ensure_directory(self, directory):
if not os.path.exists(directory):
def plot_results(self): def plot_results(self):
'''Produce and save result plots. ''' '''Produce and save result plots. '''
self.ensure_result() self.ensure_result()
if _plot_histogram_error: if _plot_histogram_error:
logger.warn(_plot_histogram_error) logger.warn(_plot_histogram_error)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment