Missed TensorFlow World? Check out the recap. Learn more


TensorFlow 2.0 version View source on GitHub

Class ModeKeys

Standard names for Estimator model modes.


  • Class tf.compat.v1.estimator.ModeKeys
  • Class tf.compat.v2.estimator.ModeKeys

The following standard keys are defined:

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

Class Members

  • EVAL = 'eval'
  • PREDICT = 'infer'
  • TRAIN = 'train'