tf.estimator.ModeKeys
Stay organized with collections
Save and categorize content based on your preferences.
Standard names for Estimator model modes.
The following standard keys are defined:
TRAIN
: training/fitting mode.
EVAL
: testing/evaluation mode.
PREDICT
: predication/inference mode.
Class Variables
EVAL = 'eval'
PREDICT = 'infer'
TRAIN = 'train'
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.estimator.ModeKeys\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [TensorFlow 2 version](/api_docs/python/tf/estimator/ModeKeys) | [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/saved_model/model_utils/mode_keys.py#L41-L53) |\n\nStandard names for Estimator model modes.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.estimator.ModeKeys`](/api_docs/python/tf/estimator/ModeKeys), \\`tf.compat.v2.estimator.ModeKeys\\`\n\n\u003cbr /\u003e\n\nThe following standard keys are defined:\n\n- `TRAIN`: training/fitting mode.\n- `EVAL`: testing/evaluation mode.\n- `PREDICT`: predication/inference mode.\n\nClass Variables\n---------------\n\n- `EVAL = 'eval'`\n- `PREDICT = 'infer'`\n- `TRAIN = 'train'`"]]