# tfma.is_legacy_estimator

<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#L1009-L1032) |

Returns true if there is a legacy estimator.

    tfma.is_legacy_estimator(
        eval_shared_model: Optional[https://www.tensorflow.org/tfx/model_analysis/api_docs/python/tfma/types/EvalSharedModel] = None
    ) -> bool

<br />

<br />

<br />

| ## Args ||
|---|---|
| `eval_shared_model` | Shared model (single-model evaluation) or list of shared models (multi-model evaluation). Required unless the predictions are provided alongside of the features (i.e. model-agnostic evaluations). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A boolean indicating if legacy predict extractor will be used. ||

<br />