# Module: tf_agents.metrics.tf_metrics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/metrics/tf_metrics.py) |

TF metrics.

## Classes

[`class AverageEpisodeLengthMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/AverageEpisodeLengthMetric): Metric to compute the average episode length.

[`class AverageReturnMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/AverageReturnMetric): Metric to compute the average return.

[`class AverageReturnMultiMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/AverageReturnMultiMetric): Metric to compute the average return for multiple metrics.

[`class ChosenActionHistogram`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/ChosenActionHistogram): Metric to compute the frequency of each action chosen.

[`class EnvironmentSteps`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/EnvironmentSteps): Counts the number of steps taken in the environment.

[`class MaxReturnMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/MaxReturnMetric): Metric to compute the max return.

[`class MinReturnMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/MinReturnMetric): Metric to compute the min return.

[`class NumberOfEpisodes`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/NumberOfEpisodes): Counts the number of episodes in the environment.

[`class TFDeque`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/TFDeque): Deque backed by tf.Variable storage.

## Functions

[`log_metrics(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/metrics/tf_metrics/log_metrics)

<br />

<br />

<br />

| ## Other Members ||
|---|---|
| absolute_import | Instance of `__future__._Feature` |
| division | Instance of `__future__._Feature` |
| print_function | Instance of `__future__._Feature` |

<br />