def on_train_begin(self, logs={}):
    self.losses = []
    self.acc = []
    self.val_losses = []
    self.val_acc = []
    self.logs = []
    epoch_graphs = glob.glob('../output/*')
    for f in epoch_graphs:
        os.remove(f)
def on_train_begin(self, logs={}):
    self.losses = []
    self.acc = []
    self.val_losses = []
    self.val_acc = []
    self.logs = []
    epoch_graphs = glob.glob('../output/*')
    for f in epoch_graphs:
        os.remove(f)