sequence_accuracy(preds, targets)
Fraction of sequences where the full predicted string equals the target.