View source: R/score_regression.R
score_regression | R Documentation |
This function takes the observed and predicted values and computes metrics that are found in 'PyCaret' such as: 'RMSE', 'MAE', 'MSE', 'R2', 'RMSLE', and 'MAPE'.
score_regression(
observed,
predicted,
metrics = c("RMSE", "MAE", "MSE", "R2", "RMSLE", "MAPE")
)
observed |
A vector of the observed results. |
predicted |
A data.frame or vector object that is the same number of rows or length as the length of observed values. |
metrics |
A character vector of the metrics to be fitted. This is defaulted to be the metrics from 'PyCaret'. |
A vector or data.frame of the methods and metrics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.