tf.compat.v1.metrics.recall_at_top_k

View source on GitHub

Computes recall@k of top-k predictions with respect to sparse labels.

tf.compat.v1.metrics.recall_at_top_k(
    labels, predictions_idx, k=None, class_id=None, weights=None,
    metrics_collections=None, updates_collections=None, name=None
)

Differs from recall_at_k in that predictions must be in the form of top k class indices, whereas recall_at_k expects logits. Refer to recall_at_k for more details.

Args:

Returns:

Raises: