参考: keras训练完模型,为什么对训练集进行evaluate和训练时的loss完全不一样?白训练了吗?model.evaluate() gives a different loss on training data from the one in training process #6977