def fit_and_predict(model, X_train, X_test, y):
    """
    Fitting of the model and predicting
    :param model: Keras model
    :param X_train: Training samples
    :param X_test: Test samples
    :param y: Labels
    :return: Predicted values
    """
    y_train = y.reshape((-1,1))
    model.fit(X_train, y_train, epochs=5)
    print("done fitting")
    y_pred = model.predict(X_test)
    print("done predicting")
    return y_pred