# Module: tf_agents.bandits.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/bandits/metrics/tf_metrics.py) |

TF metrics for Bandits algorithms.

## Classes

[`class ConstraintViolationsMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/metrics/tf_metrics/ConstraintViolationsMetric): Computes the violations of a certain constraint.

[`class DistanceFromGreedyMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/metrics/tf_metrics/DistanceFromGreedyMetric): Difference between the estimated reward of the chosen and the best action.

[`class RegretMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/metrics/tf_metrics/RegretMetric): Computes the regret with respect to a baseline.

[`class SuboptimalArmsMetric`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/bandits/metrics/tf_metrics/SuboptimalArmsMetric): Computes the number of suboptimal arms with respect to a baseline.

<br />

<br />

<br />

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

<br />