Skip to contents

Internal function, used downstream in cheem_ls.

Usage

model_performance(y, pred, label = "label")

Arguments

y

Observed response, required by ranger models.

pred

A (n, 1) vector of the predicted values for each observation. Typically obtainable with stats::predict(). Exact syntax and arguments may change across model types.

label

Optionally provide a character label to store reminder text for the type of model and local explanation used. Defaults to "label".

Value

A data.frame of model performance statistics.