View source on GitHub |
Computes the mean of absolute difference between labels and predictions.
Inherits From: Loss
tf.keras.losses.MeanAbsoluteError(
reduction='sum_over_batch_size',
name='mean_absolute_error'
)
Formula:
loss = mean(abs(y_true - y_pred))
Methods
call
call(
y_true, y_pred
)
from_config
@classmethod
from_config( config )
get_config
get_config()
__call__
__call__(
y_true, y_pred, sample_weight=None
)
Call self as a function.