tf.keras.metrics.MeanRelativeError

Computes the mean relative error by normalizing with the given values.

Inherits From: Mean, Metric, Layer, Module

This metric creates two local variables, total and count that are used to compute the mean relative error. This is weighted by sample_weight, and it is ultimately returned as mean_relative_error: an idempotent operation that simply divides total by count.

If sample_weight is None, weights default to 1. Use sample_weight of 0 to mask values.

normalizer The normalizer values