vak.metrics.distance.functional.character_error_rate#

vak.metrics.distance.functional.character_error_rate(y_pred, y_true)[source]#

Levenshtein edit distance normalized by length of true sequence. Also known as word error distance; here applied to other vocalizations in addition to speech.

Parameters:
  • y_pred (str) – predicted labels for a series of songbird syllables

  • y_true (str) – ground truth labels for a series of songbird syllables

Return type:

Levenshtein distance / len(y_true)