score_model: Calculates out-of-sample model performance of a statistical...

Description Usage Arguments Value

View source: R/score.R

Description

Calculates out-of-sample model performance of a statistical model

Usage

1
score_model(train, test, model, x, y, metric)

Arguments

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 available_evaluation_metrics()

Value

numeric vector of length one, evaluation score for predictions using naive model


ppsr documentation built on March 2, 2021, 5:06 p.m.