# tfma.metrics.to_standard_metric_inputs

<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/metrics/metric_util.py#L243-L285) |

Verifies extract keys and converts extracts to StandardMetricInputs.

    tfma.metrics.to_standard_metric_inputs(
        extracts: https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/types/Extracts,
        include_labels: bool = True,
        include_predictions: bool = True,
        include_features: bool = False,
        include_transformed_features: bool = False,
        include_any_feature: bool = False,
        include_attributions: bool = False
    ) -> https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/metrics/StandardMetricInputs