class_docstr: Per-Region Overlap (PRO) Score.
class_docstr_tok: ["Per-Region","Overlap","(","PRO",")","Score","."]
docstr: Compute the PRO score for the current batch.
docstr_tok: ["Compute","the","PRO","score","for","the","current","batch","."]
code: def update(self, predictions: Tensor, targets: Tensor) -> None:
      """Compute the PRO score for the current batch."""
  
      self.target.append(targets)
      self.preds.append(predictions)
  
file_path: anomalib/src/anomalib/utils/metrics/pro.py
imports: from __future__ import annotations
  import torch
  from torch import Tensor
  from torchmetrics import Metric
  from torchmetrics.functional import recall
  from torchmetrics.utilities.data import dim_zero_cat
  from anomalib.utils.cv import connected_components_cpu, connected_components_gpu
label_desc: Use image node_id 2 for calling the PRO obj's underlying member method code with example usage: obj.update(predictions, targets) without return types