class_docstr: Evaluator used for global metrics evaluation.
class_docstr_tok: ["Evaluator","used","for","global","metrics","evaluation","."]
docstr: Add a batch of examples to the evaluator.
  
  Args:
    target: Target to be predicted as a Numpy array.
    output: Output from the model as a Numpy array.
docstr_tok: ["Add","a","batch","of","examples","to","the","evaluator",".","Args",":","target",":","Target","to","be","predicted","as","a","Numpy","array",".","output",":","Output","from","the","model","as","a","Numpy","array","."]
code: def add_batch_of_examples(
      self, target: np.ndarray, output: np.ndarray
  ):
      """Add a batch of examples to the evaluator.
  
      Args:
        target: Target to be predicted as a Numpy array.
        output: Output from the model as a Numpy array.
      """
      self._num_examples_added += output.shape[0]
      if self.batches is None:
          self.batches = (target, output)
      else:  # Append targets and outputs for the new examples.
          self.batches = (
              np.append(self.batches[0], target, axis=0),
              np.append(self.batches[1], output, axis=0),
          )
  
file_path: scenic/scenic/projects/svvit/metrics.py
imports: from typing import Optional, List, Dict
  import numpy
label_desc: Use image node_id 2 for calling the TruvariGlobalEvaluator obj's underlying member method code with example usage: obj.add_batch_of_examples(target, output) without return types