class_docstr: Statistics for binary decision,
  including precision, recall, false positive, false negative
docstr: Args:
      pred (np.ndarray): binary array.
      label (np.ndarray): binary array of the same size.
code: def feed(self, pred, label):
      """
      Args:
          pred (np.ndarray): binary array.
          label (np.ndarray): binary array of the same size.
      """
      assert pred.shape == label.shape, "{} != {}".format(
          pred.shape, label.shape
      )
      self.nr_pos += (label == 1).sum()
      self.nr_neg += (label == 0).sum()
      self.nr_pred_pos += (pred == 1).sum()
      self.nr_pred_neg += (pred == 0).sum()
      self.corr_pos += ((pred == 1) & (pred == label)).sum()
      self.corr_neg += ((pred == 0) & (pred == label)).sum()
  
imports: import numpy
label_desc: Use image node_id 3 for calling the BinaryStatistics obj's underlying member method code with example usage: obj.feed(pred, label) without return types