class_docstr: Meter to calculate mean AP metric for multi-label image classification task.
  
  Args:
      meters_config (AttrDict): config containing the meter settings
  
  meters_config should specify the num_classes
class_docstr_tok: ["Meter","to","calculate","mean","AP","metric","for","multi-label","image","classification","task",".","Args",":","meters_config","(","AttrDict",")",":","config","containing","the","meter","settings","meters_config","should","specify","the","num_classes"]
code: def __init__(self, meters_config: AttrDict):
      self.num_classes = meters_config.get("num_classes")
      self._total_sample_count = None
      self._curr_sample_count = None
      self.reset()
  
imports: import logging
  import numpy
  import torch
  from classy_vision.generic.distributed_util import all_reduce_sum, gather_from_all
  from classy_vision.meters import ClassyMeter, register_meter
  from vissl.config import AttrDict
  from vissl.utils.env import get_machine_local_and_dist_rank
  from vissl.utils.svm_utils.evaluate import get_precision_recall
label_desc: Use image node_id 1 to create a new MeanAPMeter object from inherited base classes: ClassyMeter with example: obj = MeanAPMeter(meters_config)