tf.contrib.metrics.confusion_matrix

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

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

See the guide: Metrics (contrib) > Metric Ops

Deprecated. Use tf.confusion_matrix instead.