Shortcuts

Char Error Rate

Module Interface

torchmetrics.CharErrorRate[source]

alias of _CharErrorRate

Functional Interface

torchmetrics.functional.char_error_rate(preds, target)[source]

Wrapper for deprecated import.

>>> preds = ["this is the prediction", "there is an other sample"]
>>> target = ["this is the reference", "there is another one"]
:rtype: :py:class:`~torch.Tensor`
>>> _char_error_rate(preds=preds, target=target)
tensor(0.3415)