model_performance: Extract higher level model performance statistics

View source: R/1_cheem_lists.r

model_performanceR Documentation

Extract higher level model performance statistics

Description

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.


cheem documentation built on Aug. 27, 2025, 1:09 a.m.