tf.estimator.train_and_evaluate got wrong Evaluation accuray and loss
问题 I use tf.estimator.train_and_evaluate to train and evaluate my model. This is my code: import tensorflow as tf import numpy as np from tensorflow.contrib.slim.nets import resnet_v2 import tensorflow.contrib.slim as slim (x_train, y_train), (x_test, y_test) = tf.keras.datasets.mnist.load_data(path='mnist.npz') x_train = np.expand_dims(x_train, 3).astype(np.float32)[:5000] y_train = y_train.astype(np.int32)[:5000] x_test = np.expand_dims(x_test, 3).astype(np.float32)[:1000] y_test = y_test