Missed TensorFlow World? Check out the recap. Learn more

tf.metrics.sparse_precision_at_k

View source on GitHub

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

Aliases:

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