Shortcuts

Retrieval Fall-Out

Module Interface

torchmetrics.RetrievalFallOut[source]

alias of _RetrievalFallOut

Functional Interface

torchmetrics.functional.retrieval_fall_out(preds, target, top_k=None)[source]

Wrapper for deprecated import.

>>> from torch import tensor
>>> preds = tensor([0.2, 0.3, 0.5])
>>> target = tensor([True, False, True])
:rtype: :py:class:`~torch.Tensor`
>>> _retrieval_fall_out(preds, target, top_k=2)
tensor(1.)