# tfma.load_metrics

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/model-analysis/blob/v0.46.0/tensorflow_model_analysis/api/model_eval_lib.py#L208-L214) |

Read and deserialize the MetricsForSlice records.

    tfma.load_metrics(
        output_path: str, output_file_format: str = 'tfrecord'
    ) -> Iterator[https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/MetricsForSlice]

### Used in the notebooks

| Used in the tutorials |
|---|
| - [TensorFlow Model Analysis](https://www.tensorflow.org/tfx/tutorials/model_analysis/tfma_basic) |