docstr: Calculate map for all classes
docstr_tok: ["Calculate","map","for","all","classes"]
code: def cal_map(self):
      """
      Calculate map for all classes
      """
      self.cal_ap()
      valid_ap = [self.ap[i] for i in self.thing_ids]
      map = np.mean(valid_ap)
      self.map = map
  
      return map
  
file_path: PaddleSeg/contrib/PanopticSeg/paddlepanseg/utils/evaluation/ins_seg_evaluator.py
imports: from collections import defaultdict
  import numpy
  from paddlepanseg.cvlibs import build_info_dict
  from paddlepanseg.utils import decode_pan_id, is_crowd
  from .evaluator import Evaluator
label_desc: Use image node_id 5 for calling the InsSegEvaluator obj's underlying member method code with example usage: obj.cal_map() and returns: map