class_docstr: Average precision metric.
docstr: :class:`AveragePrecision` constructor.
  
  :param threshold: The label threshold of relevance degree.
docstr_tok: [":","class",":","`","AveragePrecision","`","constructor",".",":","param","threshold",":","The","label","threshold","of","relevance","degree","."]
code: def __init__(self, threshold: float = 0.0):
      """
      :class:`AveragePrecision` constructor.
  
      :param threshold: The label threshold of relevance degree.
      """
      self._threshold = threshold
  
imports: import numpy
  from matchzoo.engine import base_metric
  from .None import Precision
label_desc: Use image node_id 1 to create a new AveragePrecision object from inherited base classes: base_metric with example: obj = AveragePrecision(threshold)