score_model | R Documentation |
Calculates out-of-sample model performance of a statistical model
score_model(train, test, model, x, y, metric)
train |
df, training data, containing variable y |
test |
df, test data, containing variable y |
model |
parsnip model object, with mode preset |
x |
character, column name of predictor variable |
y |
character, column name of target variable |
metric |
character, name of evaluation metric being used, see |
numeric vector of length one, evaluation score for predictions using naive model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.