MeanAbsolutePercentageErrorΒΆ
Computes the mean absolute percentage error between y_true & y_pred.
Abstract Signature:
MeanAbsolutePercentageError(y_true: Tensor, y_pred: Tensor)
PyTorch
API:
βStrategy: Macro 'torch.mean(torch.abs(({y_true} - {y_pred}) / torch.clamp({y_true}.abs(), min=1e-7))) * 100'
TensorFlow
API:
tf.keras.losses.mean_absolute_percentage_errorStrategy: Direct Mapping