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