aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/metrics
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-11-01 09:24:32 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-01 09:29:08 -0700
commitc40d5417334a2131a3507ab387ace025bac222d3 (patch)
treebd34bef6fa7eb9266e4eb22471d48f75cec0f38f /tensorflow/contrib/metrics
parent18bf5b2d91435a7b0efa23e889884221b48c2cef (diff)
Exposes recall_at_top_k under tf.metrics.
PiperOrigin-RevId: 174189641
Diffstat (limited to 'tensorflow/contrib/metrics')
-rw-r--r--tensorflow/contrib/metrics/python/ops/metric_ops.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/metrics/python/ops/metric_ops.py b/tensorflow/contrib/metrics/python/ops/metric_ops.py
index c328b03707..fbb030348c 100644
--- a/tensorflow/contrib/metrics/python/ops/metric_ops.py
+++ b/tensorflow/contrib/metrics/python/ops/metric_ops.py
@@ -2143,7 +2143,7 @@ def sparse_recall_at_top_k(labels,
default_name = _at_k_name('recall', class_id=class_id)
with ops.name_scope(name, default_name,
(top_k_predictions, labels, weights)) as name_scope:
- return metrics_impl._sparse_recall_at_top_k( # pylint: disable=protected-access
+ return metrics_impl.recall_at_top_k(
labels=labels,
predictions_idx=top_k_predictions,
class_id=class_id,