def get_callbacks(save_path, lr=0.001, patience=64):
    csv_logger = CSVLogger((save_path + '_log.csv'), append=True)
    check_path = save_path
    save_checkpoint = ModelCheckpoint(filepath=check_path, monitor='val_loss', save_best_only=True)
    lerning_rate_schedular = ReduceLROnPlateau(patience=8, min_lr=(lr * 1e-05))
    early_stopping = EarlyStopping(monitor='val_loss', patience=16, verbose=1, min_delta=0.0001, mode='min')
    Callbacks = [csv_logger, save_checkpoint, early_stopping]
    return Callbacks
def get_callbacks(save_path, lr=0.001, patience=64):
    csv_logger = CSVLogger((save_path + '_log.csv'), append=True)
    check_path = save_path
    save_checkpoint = ModelCheckpoint(filepath=check_path, monitor='val_loss', save_best_only=True)
    lerning_rate_schedular = ReduceLROnPlateau(patience=8, min_lr=(lr * 1e-05))
    early_stopping = EarlyStopping(monitor='val_loss', patience=16, verbose=1, min_delta=0.0001, mode='min')
    Callbacks = [csv_logger, save_checkpoint, early_stopping]
    return Callbacks