def on_batch_end(self, batch, logs={}):
        super(Plotter, self).on_batch_end(batch, logs)
        if batch==0 and self.last_batch!=0:
            self.old_batch=self.last_batch
        batch+=self.old_batch
        if batch+1==len(self.accs):
            return
        self.last_batch = batch
        train_loss = self.seen/self.totals['loss']
        train_acc = self.totals['acc']/self.seen
        self.losses.append(train_loss)
        self.accs.append(train_acc)

        self.plot_generator.update(batch, self.losses, self.accs)
dataset/ETHPy150Open andreykurenkov/emailinsight/pyScripts/kerasPlotter.py/Plotter.on_batch_end/swapped operands of `/`