TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.metrics.sparse_average_precision_at_k

View source on GitHub

Renamed to average_precision_at_k, please use that method instead. (deprecated)

Aliases:

  • tf.compat.v1.metrics.sparse_average_precision_at_k
tf.metrics.sparse_average_precision_at_k(
    labels,
    predictions,
    k,
    weights=None,
    metrics_collections=None,
    updates_collections=None,
    name=None
)