# tfma.metrics.metric_thresholds_from_metrics_specs

<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_specs.py#L577-L653) |

Returns thresholds associated with given metrics specs.

    tfma.metrics.metric_thresholds_from_metrics_specs(
        metrics_specs: Iterable[https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/MetricsSpec],
        eval_config: Optional[https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/EvalConfig] = None
    ) -> Dict[metric_types.MetricKey, Iterable[_SliceAndThreshold]]