View source: R/model_evaluation.R
eval_model | R Documentation |
Evaluate Model Performance by calculating RMSE, MAE, and R² metrics.
eval_model(model, data, formula, model_type = c("rf", "xgb", "svr"))
model |
A trained model |
data |
A data frame |
formula |
A formula object |
model_type |
Character string: one of "rf", "xgb", or "svr" |
A numeric value representing the model's accuracy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.