score_regression {stressor}R Documentation

Score Function for Regression

Description

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'.

Usage

score_regression(
  observed,
  predicted,
  metrics = c("RMSE", "MAE", "MSE", "R2", "RMSLE", "MAPE")
)

Arguments

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'.

Value

A vector or data.frame of the methods and metrics.


[Package stressor version 0.2.0 Index]