class_docstr: Mean absolute error.
  
  Examples
  --------
  
  >>> from river import metrics
  
  >>> y_true = [3, -0.5, 2, 7]
  >>> y_pred = [2.5, 0.0, 2, 8]
  
  >>> metric = metrics.MAE()
  
  >>> for yt, yp in zip(y_true, y_pred):
  ...     metric.update(yt, yp)
  ...     print(metric.get())
  0.5
  0.5
  0.333
  0.5
  
  >>> metric
  MAE: 0.5
class_docstr_tok: ["Mean","absolute","error",".","Examples","--","--","--","--",">",">",">","from","river","import","metrics",">",">",">","y_true","=","[","3",",","-0.5",",","2",",","7","]",">",">",">","y_pred","=","[","2.5",",","0.0",",","2",",","8","]",">",">",">","metric","=","metrics.MAE","(",")",">",">",">","for","yt",",","yp","in","zip","(","y_true",",","y_pred",")",":","...","metric.update","(","yt",",","yp",")","...","print","(","metric.get","(",")",")","0.5","0.5","0.333","0.5",">",">",">","metric","MAE",":","0.5"]
code: def _eval(self, y_true, y_pred):
      return abs(y_true - y_pred)
  
imports: from __future__ import annotations
  from river import metrics
label_desc: Use image node_id 1 for calling the MAE obj's underlying member method code with example usage: obj._eval(y_true, y_pred) and returns: abs