code: def compute_precision_at(ious, threshold):
      mx1 = np.max(ious, axis=0)
      mx2 = np.max(ious, axis=1)
      tp = np.sum(mx2 >= threshold)
      fp = np.sum(mx2 < threshold)
      fn = np.sum(mx1 < threshold)
      return float(tp) / (tp + fp + fn)
  
file_path: nni/examples/trials/kaggle-tgs-salt/metrics.py
imports: import numpy
  from pycocotools import mask
  from utils import get_segmentations
label_desc: Use image node_id 3 for calling a global function with example usage: compute_precision_at(ious, threshold) and returns: unknown