allennlp.training.metrics.mean_absolute_error#

MeanAbsoluteError#

MeanAbsoluteError(self) -> None

This Metric calculates the mean absolute error (MAE) between two tensors.

get_metric#

MeanAbsoluteError.get_metric(self, reset:bool=False)

Returns

The accumulated mean absolute error.

reset#

MeanAbsoluteError.reset(self)

Reset any accumulators or internal state.