class_docstr: Calculate the average precision and average precision at n.
docstr: Gets the heap size maintained in the class.
docstr_tok: ["Gets","the","heap","size","maintained","in","the","class","."]
code: def heap_size(self):
      """Gets the heap size maintained in the class."""
      return len(self._heap)
  
file_path: PaddleHub/modules/video/classification/videotag_tsn_lstm/resource/metrics/youtube8m/average_precision_calculator.py
imports: import heapq
  import random
  import numbers
  import numpy
label_desc: Use image node_id 2 for calling the AveragePrecisionCalculator obj's underlying member method code with example usage: obj.heap_size() and returns: len