# Module: tf.contrib.eager.metrics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/eager/python/metrics.py) |

Metrics namespace.

## Classes

[`class Accuracy`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/eager/metrics/Accuracy): Calculates how often `predictions` matches `labels`.

[`class BinaryAccuracy`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/eager/metrics/BinaryAccuracy): Calculates how often `predictions` matches `labels`.

[`class CategoricalAccuracy`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/eager/metrics/CategoricalAccuracy): Calculates how often `predictions` matches `labels`.

[`class Mean`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/eager/metrics/Mean): Computes the (weighted) mean of the given values.

[`class Metric`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/eager/metrics/Metric): A metric holds state for aggregating statistics over an evaluation run.

[`class SparseAccuracy`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/contrib/eager/metrics/SparseAccuracy): Calculates how often `predictions` matches `labels`.