def resave_model(model_path, save_path):
    model = load_model(model_path, custom_objects={'auc': auc, 'precision': precision, 'recall': recall, 'f1': f1})
    save_json(model, (save_path + '/model.json'))
    save_weights(model, (save_path + '/model.h5'))
def resave_model(model_path, save_path):
    model = load_model(model_path, custom_objects={'auc': auc, 'precision': precision, 'recall': recall, 'f1': f1})
    save_json(model, (save_path + '/model.json'))
    save_weights(model, (save_path + '/model.h5'))