TensorFlow 2.0 Beta is available Learn more

tf.estimator.ModeKeys

Class ModeKeys

Standard names for Estimator model modes.

Aliases:

  • Class tf.compat.v1.estimator.ModeKeys
  • Class tf.compat.v2.estimator.ModeKeys
  • Class tf.estimator.ModeKeys
View source on GitHub

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'