eval_model: Get RMSE/MAE/R² metrics on training data

View source: R/model_evaluation.R

eval_modelR Documentation

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"))

Arguments

model

A trained model

data

A data frame

formula

A formula object

model_type

Character string: one of "rf", "xgb", or "svr"

Value

A numeric value representing the model's accuracy


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