tf.metrics.recall_at_k(
    labels,
    predictions,
    k,
    class_id=None,
    weights=None,
    metrics_collections=None,
    updates_collections=None,
    name=None
)

参考

  • https://www.w3cschool.cn/tensorflow_python/tensorflow_python-k8fa2z7v.html