Tensorflow Estimator - Periodic Evaluation on Eval Dataset

后端 未结 1 634
暖寄归人
暖寄归人 2021-01-03 08:20

The tensorflow documentation does not provide any example of how to perform a periodic evaluation of the model on an evaluation set.

Some people suggested the use o

相关标签:
1条回答
  • 2021-01-03 08:41

    Only a few parameters/options of Experiment are deprecated (what specific errors are you seeing?). If you create an Estimator that will do periodic checkpoints (using options in RunConfig) and an Experiment using it, you will get evaluation for each checkpoint by default when using train_and_evaluate method.

    EDIT: As Maxime pointed out in the comments. He needed to add the following lines to get rid of his error:

    os.environ['TF_CONFIG'] = json.dumps({'environment': 'local'})
    config = tf.contrib.learn.RunConfig()
    
    0 讨论(0)
提交回复
热议问题