{ }
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.
Raises | |
---|---|
ValueError
|
If weights is not None and its shape doesn't match
predictions , or if either metrics_collections or updates_collections
are not a list or tuple.
|