Internal function, used downstream in cheem_ls.
model_performance(y, pred, label = "label")A data.frame of model performance statistics.
Observed response, required by ranger models.
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.
Optionally provide a character label to store reminder text for the type of model and local explanation used. Defaults to "label".