code: def explained_variance_2d(ypred, y):
      assert y.ndim == 2 and ypred.ndim == 2
      vary = np.var(y, axis=0)
      out = 1 - np.var(y - ypred) / vary
      out[vary < 1e-10] = 0
      return out
  
file_path: baselines/baselines/common/math_util.py
imports: import numpy
  import scipy.signal
label_desc: Use image node_id 3 for calling a global function with example usage: explained_variance_2d(ypred, y) and returns: out