def on_epoch_end(self, epoch, logs={}):
    self.liveplot.update(logs.copy())
    self.liveplot.draw()
def on_epoch_end(self, epoch, logs={}):
    self.liveplot.update(logs.copy())
    self.liveplot.draw()