def define_plot(self, title, metrics, x_axis):
    if (title in self._plots):
        raise DuplicatePlotException('Plot {} already defined'.format(title))
    self._plots.add(title)
    self._print('Plot with title `{}` of {} against {} will be registered when this model is being trained on Rafiki'.format(title, ', '.join(metrics), (x_axis or 'time')))
def define_plot(self, title, metrics, x_axis):
    if (title in self._plots):
        raise DuplicatePlotException('Plot {} already defined'.format(title))
    self._plots.add(title)
    self._print('Plot with title `{}` of {} against {} will be registered when this model is being trained on Rafiki'.format(title, ', '.join(metrics), (x_axis or 'time')))