# Module: tff.learning.programs

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Package of methods for compositional federated program logic.

## Classes

[`class EvaluationManager`](https://www.tensorflow.org/federated/api_docs/python/tff/learning/programs/EvaluationManager): A manager for facilitating multiple in-progress evaluations.

[`class ProgramState`](https://www.tensorflow.org/federated/api_docs/python/tff/learning/programs/ProgramState): A structure representing the program state.

## Functions

[`extract_and_rewrap_metrics(...)`](https://www.tensorflow.org/federated/api_docs/python/tff/learning/programs/extract_and_rewrap_metrics): Extracts a sub-structure and re-wraps it with a new prefix.

[`train_model(...)`](https://www.tensorflow.org/federated/api_docs/python/tff/learning/programs/train_model): Runs specified rounds of training and optionally evaluates the model.

[`train_model_with_vizier(...)`](https://www.tensorflow.org/federated/api_docs/python/tff/learning/programs/train_model_with_vizier): Trains and tunes a federated model using Vizier.