code: def regressor_metrics(pred, gt):
      """
      Desc:
          Some common metrics for regression problems
      Args:
          pred:
          gt: ground truth vector
      Returns:
          A tuple of metrics
      """
      _mae = mae(pred, gt)
      _mse = mse(pred, gt)
      _rmse = rmse(pred, gt)
      # pred, gt = ignore_zeros(pred, gt)
      _mape = mape(pred, gt)
      _mspe = mspe(pred, gt)
      return _mae, _mse, _rmse, _mape, _mspe
  
file_path: PGL/examples/kddcup2022/wpf_baseline/metrics.py
imports: import pandas
  import time
  import numpy
label_desc: Use image node_id 12 for calling a global function with example usage: regressor_metrics(pred, gt) and returns: _mae,  _mse,  _rmse,  _mape,  _mspe