docstr: 计算acc,p,r,f1并返回
docstr_tok: ["\u8ba1\u7b97acc",",","p",",","r",",","f1\u5e76\u8fd4\u56de"]
code: def compute(self):
      """
      计算acc,p,r,f1并返回
      """
      p, r, f1, _ = precision_recall_fscore_support(
          self.y_true, self.y_pred, average="macro", warn_for=tuple()
      )
      _, _, acc, _ = precision_recall_fscore_support(
          self.y_true, self.y_pred, average="micro", warn_for=tuple()
      )
  
      return acc, p, r, f1
  
file_path: DeepKE/src/deepke/attribution_extraction/standard/tools/metrics.py
imports: import torch
  import numpy
  from abc import ABCMeta, abstractmethod
  from sklearn.metrics import precision_recall_fscore_support
label_desc: Use image node_id 4 for calling the PRMetric obj's underlying member method code with example usage: obj.compute() and returns: acc,  p,  r,  f1