Shortcuts

Word Info. Preserved

Module Interface

torchmetrics.WordInfoPreserved[source]

alias of _WordInfoPreserved

Functional Interface

torchmetrics.functional.word_information_preserved(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`
>>> _word_information_preserved(preds, target)
tensor(0.3472)