# tf.estimator.ModeKeys

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/saved_model/model_utils/mode_keys.py#L38-L50) |

Standard names for Estimator model modes. (deprecated)

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.estimator.ModeKeys`](https://www.tensorflow.org/api_docs/python/tf/estimator/ModeKeys)

<br />

    tf.estimator.ModeKeys(
        *args, **kwargs
    )

> [!WARNING]
> **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.keras instead.

The following standard keys are defined:

- `TRAIN`: training/fitting mode.
- `EVAL`: testing/evaluation mode.
- `PREDICT`: predication/inference mode.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| EVAL | `'eval'` |
| PREDICT | `'infer'` |
| TRAIN | `'train'` |

<br />