TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.contrib.metrics.confusion_matrix

View source on GitHub

Deprecated. Use tf.math.confusion_matrix instead.

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