对于 tf.estimator,它将运行所有 epoch,然后进行评估,但是如何按每个 epoch 评估测试数据集,以便我们可以在张量板上看到一条线而不是单个点
最佳答案
我建议使用如下循环:
def input_fn(files):
ds = dataset...
return ds (without repeat)
for _ n_epochs:
estimator.train(input_fn(train-files))
estimator.evaluate(input_fn(eval-files))
关于tensorflow - 如何评估 tensorflow 估计器每个时期的测试数据集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49406161/