code: def truvari_recall_events(
      logits: np.ndarray,
      one_hot_targets: np.ndarray,
  ) -> Dict[str, float]:
      """Computes event-level recall, regardless of the genotype match.
  
      Args:
        logits: float array; Output of model in shape [batch, ..., num_classes].
        one_hot_targets: Multi hot vector of shape [batch, ..., num_classes].
  
      Returns:
        The value of recall events.
      """
  
      preds = np.not_equal(np.argmax(logits, axis=-1), 0)
      targets = np.not_equal(np.argmax(one_hot_targets, axis=-1), 0)
      correct = np.equal(preds, targets)
      incorrect = np.not_equal(preds, targets)
  
      tp = np.sum(targets & correct)
      fn = np.sum(targets & incorrect)
  
      return {
          "truvari_recall_events": np.divide(tp, tp + fn + _EPSILON)
      }
  
file_path: scenic/scenic/projects/svvit/metrics.py
imports: from typing import Optional, List, Dict
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: truvari_recall_events(logits, one_hot_targets) and returns: dict