Add recall and precision at K to metrics.
This change adds the options to set top_k and class_id to the Recall and Precision metric classes. The top_k is computed for dense labels, which differs from tf.metrics.recall_at_k, which expects sparse labels. PiperOrigin-RevId: 228944786
Loading
Please sign in to comment