mape: Mean Absolute Percentage Error (MAPE)

View source: R/mape.R

mapeR Documentation

Mean Absolute Percentage Error (MAPE)

Description

Compute Mean Absolute Percentage Error (MAPE). This metric is not suitable for discrete analysis and probably will be removed from the package contents in near future.

Usage

mape(y_real, y_predicted)

Arguments

y_real

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

y_predicted

Predicte values (probabiblities by class).

Value

integer value of Mean Absolute Percentage Error (MAPE)


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