wmape: Weighted mean absolute percentage error (WMAPE)

View source: R/deepMetrics.r

wmapeR Documentation

Weighted mean absolute percentage error (WMAPE)

Description

Weighted mean absolute percentage error (WMAPE)

Usage

wmape(actuals, preds, weights = 1, na.rm = FALSE)

Arguments

actuals

A numeric vector of actual values.

preds

A numeric vector of prediction values.

weights

A numeric vector with weights.

na.rm

A logical value indicating whether actual and prediction pairs with at least one NA value should be ignored.

Value

Weighted mean absolute percentage error.

See Also

Other Metrics: accuracy(), cross_entropy(), dice(), entropy(), erf(), erfc(), erfcinv(), erfinv(), gini_impurity(), huber_loss(), iou(), log_cosh_loss(), mae(), mape(), mse(), msle(), quantile_loss(), rmse(), rmsle(), rmspe(), sse(), stderror(), vc(), wape()


stschn/deepANN documentation built on June 25, 2024, 7:27 a.m.