Calculates out-of-sample model performance of a statistical model
score_model(train, test, model, x, y, metric)
numeric vector of length one, evaluation score for predictions using naive model
df, training data, containing variable y
df, test data, containing variable y
parsnip model object, with mode preset
character, column name of predictor variable
character, column name of target variable
character, name of evaluation metric being used, see available_evaluation_metrics()