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

View source: R/score.R

score_modelR Documentation

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

Description

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

Usage

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 June 22, 2024, 7:15 p.m.