|TensorFlow 1 version||View source on GitHub|
Train and evaluate the
Compat aliases for migration
See Migration guide for more details.
tf.estimator.train_and_evaluate( estimator, train_spec, eval_spec )
Used in the notebooks
|Used in the guide||Used in the tutorials|
This utility function trains, evaluates, and (optionally) exports the model by
using the given
estimator. All training related specification is held in
train_spec, including training
input_fn and training max steps, etc. All
evaluation and export related specification is held in
input_fn, steps, etc.
This utility function provides consistent behavior for both local (non-distributed) and distributed configurations. The default distribution configuration is parameter server-based between-graph replication. For other types of distribution configurations such as all-reduce training, please use