code: def explained_variance_ratio(Xt, X):
      return np.var(Xt, axis=0).sum() / np.var(X, axis=0).sum()
  
file_path: scikit-learn/asv_benchmarks/benchmarks/utils.py
imports: import numpy
  from sklearn.metrics import balanced_accuracy_score, r2_score
label_desc: Use image node_id 6 for calling a global function with example usage: explained_variance_ratio(Xt, X) and returns: unknown