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
.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/metrics/confusion_matrix