Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def draw(self):
if self.target == MATPLOTLIB_TARGET:
draw_plot(self.logs, self.base_metrics,
figsize=self.figsize,
max_epoch=self.max_epoch,
max_cols=self.max_cols,
series_fmt=self.series_fmt,
metric2title=self.metric2title,
skip_first=self.skip_first,
extra_plots=self.extra_plots,
fig_path=self.fig_path)
if self.metrics_extrema:
print_extrema(self.logs,
self.base_metrics,
self.metrics_extrema,
series_fmt=self.series_fmt,
metric2title=self.metric2title)
if self.target == NEPTUNE_TARGET:
from .neptune_integration import neptune_send_plot