0

What's the best way to disable evaluation if I'm using tf.learn.Experiment?

I'm running this model which constructs an experiment.

tf.contrib.learn.Experiment(
        estimator=estimator,
        train_input_fn=train_input_fn,
        train_steps=FLAGS.num_train_steps,
        train_monitors=[export_monitor],
        eval_input_fn=eval_input_fn,
        eval_steps=FLAGS.num_eval_steps,
        eval_metrics=_create_evaluation_metrics(),
        min_eval_frequency=100)

To debug an issue with evaluation, I'd like to prevent evluation from running. Is there an easy way to do this?

Jeremy Lewi
  • 6,386
  • 6
  • 22
  • 37

1 Answers1

2

The answer is going to depend on the method you invoke on Experiment. Presumably you are going to call train_and_evaluate, e.g., if TF_CONFIG's task type is set to "master" (cf this code).

In that case, you'll want to set min_eval_frequency to 0 or None (cf this code)

rhaertel80
  • 8,254
  • 1
  • 31
  • 47