environmentaltools.common.mean_absolute_error

environmentaltools.common.mean_absolute_error(a, b)[source]

Calculate Mean Absolute Error between two arrays.

The Mean Absolute Error (MAE) measures the average magnitude of errors between predicted and observed values without considering their direction.

Parameters:
  • a (array-like) – First array (e.g., observed values).

  • b (array-like) – Second array (e.g., predicted values).

Returns:

The mean absolute error value.

Return type:

float