tf.contrib.metrics.confusion_matrix(labels, predictions, num_classes=None, dtype=tf.int32, name=None, weights=None)

tf.contrib.metrics.confusion_matrix(labels, predictions, num_classes=None, dtype=tf.int32, name=None, weights=None)

See the guide: Metrics (contrib) > Metric Ops

Deprecated. Use tf.confusion_matrix instead.

Defined in tensorflow/contrib/metrics/python/ops/confusion_matrix_ops.py.