code: def gt_concordance(
      logits: np.ndarray,
      one_hot_targets: np.ndarray,
  ) -> Dict[str, float]:
      """Computes the genotype concordance.
  
      Genotype concordance is the fraction of predicted genotypes that exactly
      match the call set genotype.
  
      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 genotype concordance.
      """
      preds = np.argmax(logits, axis=-1)
      targets = np.argmax(one_hot_targets, axis=-1)
      correct = np.equal(preds, targets)
  
      return {"gt_concordance": np.divide(np.sum(correct), len(preds))}
  
file_path: scenic/scenic/projects/svvit/metrics.py
imports: from typing import Optional, List, Dict
  import numpy
label_desc: Use image node_id 5 for calling a global function with example usage: gt_concordance(logits, one_hot_targets) and returns: dict