tf.contrib.learn.RunConfig(save_checkpoints_secs=1)) throws unexpected keyword TypeError
<p>As per the instructions at <a href="https://www.tensorflow.org/versions/r0.10/tutorials/monitors/index.html" rel="nofollow">https://www.tensorflow.org/versions/r0.10/tutorials/monitors/index.html</a> I have added a monitor to the training script as such:</p>

<pre><code>tf.contrib.learn.DNNClassifier(model_dir=model_dir,
                                   feature_columns=deep_columns,
                                   hidden_units=[50, 100, 50],
                                   config=tf.contrib.learn.RunConfig(
                                            save_checkpoints_secs=1))
</code></pre>

<p>However, this throws the following TypeError:</p>

<blockquote>
  <p>TypeError: <strong>init</strong>() got an unexpected keyword argument 'save_checkpoints_secs'</p>
</blockquote>

<p>There are additional lines of code included related to the logging and monitoring, however they seem irrelevant to this problem...maybe...maybe not...</p>

<p>Apparently, you're running a version of tensorflow that is &lt; <code>0.10</code>. Versions below <code>0.10</code> do not take a <code>save_checkpoints_secs</code> keyword for <code>RunConfig</code> initialization.</p>

<p>You should upgrade your <code>tensorflow</code> installation:</p>

<p><a href="http://stackoverflow.com/questions/34239537/how-to-update-tensorflow-from-source">How to Update Tensorflow from source</a></p>

<p><a href="https://www.tensorflow.org/versions/r0.11/get_started/os_setup.html" rel="nofollow">Download and Setup</a></p>

python tensorflow