Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.estimator.ModeKeys

TensorFlow 2.0 version View source on GitHub

Class ModeKeys

Standard names for Estimator model modes.

Aliases:

  • 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'