View source on GitHub
|
Computes the mean absolute percentage error between y_true & y_pred.
Inherits From: Loss
tf.keras.losses.MeanAbsolutePercentageError(
reduction='sum_over_batch_size',
name='mean_absolute_percentage_error'
)
Formula:
loss = 100 * mean(abs((y_true - y_pred) / y_true))
Args |
|---|
reduction
"sum_over_batch_size".
Supported options are "sum", "sum_over_batch_size" or None.
name
Methods
call
call(
y_true, y_pred
)
from_config
@classmethodfrom_config( config )
get_config
get_config()
__call__
__call__(
y_true, y_pred, sample_weight=None
)
Call self as a function.
View source on GitHub