eval_model: Get RMSE/MAE/R² metrics on training data
Description
Evaluate Model Performance by calculating RMSE, MAE, and R² metrics.
Usage
eval_model(model, data, formula, model_type = c("rf", "xgb", "svr"))Value
A numeric value representing the model's accuracy
Arguments
- model
A trained model
- data
A data frame
- formula
A formula object
- model_type
Character string: one of "rf", "xgb", or "svr"