mae: Mean Absolute Error (MAE)

View source: R/mae.R

maeR Documentation

Mean Absolute Error (MAE)

Description

Compute Mean Absolute Error (MAE). #'

Usage

mae(y_real, y_predicted, rowsums = TRUE)

Arguments

y_real

Observed values (integers) to compare with (in matrix format for multiclass classification).

y_predicted

Predicted values (probabiblities by class).

rowsums

Whether in case of multiple classes in dataframe the metrics should be summed across classes before calculating the mean.

Value

integer value of Mean Absolute Error (MAE)


nikitagusarov/performancer documentation built on Jan. 12, 2023, 12:19 a.m.