# tf.contrib.learn.ModeKeys

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/learn/python/learn/estimators/model_fn.py#L48-L67) |

Standard names for model modes (deprecated).

THIS CLASS IS DEPRECATED.

The following standard keys are defined:

- `TRAIN`: training mode.
- `EVAL`: evaluation mode.
- `INFER`: inference mode.

## Methods

### `validate`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/learn/python/learn/estimators/model_fn.py#L64-L67)

    @classmethod
    validate(
        key
    )

## Class Variables

- `EVAL = 'eval'`
- `INFER = 'infer'`
- `TRAIN = 'train'`