tf.estimator.EvalSpec

Configuration for the "eval" part for the train_and_evaluate call.

Used in the notebooks

Used in the guide Used in the tutorials

EvalSpec combines details of evaluation of the trained model as well as its export. Evaluation consists of computing metrics to judge the performance of the trained model. Export writes out the trained model on to external storage.

input_fn A function that constructs the input data for evaluation. See Premade Estimators for more information. The function should construct and return one of the following:

  • A 'tf.data.Dataset' object: Outputs of Dataset object must be a t