# Module: tf_agents.train.actor

<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/train/actor.py) |

Actor to use for data collection or evaluation.

> [!NOTE]
> **Note:** the actor currently only supports py_envs, policies/drivers.

## Classes

[`class Actor`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/train/Actor): Actor.

## Functions

[`collect_metrics(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/train/actor/collect_metrics): Utilitiy to create metrics often used during data collection.

[`eval_metrics(...)`](https://www.tensorflow.org/agents/api_docs/python/tf_agents/train/actor/eval_metrics): Utilitiy to create metrics often used during policy evaluation.