<p dir="auto">OS : MacOS 10.12<br>
TensorVersion : 1.2<br>
PythonVersion : 2.7</p>
<p dir="auto">Run the example of 'A custom model' in the document '<a href="https://www.tensorflow.org/get_started/get_started#a_custom_model" rel="nofollow">Getting Started With TensorFlow</a>', occur the exception:<br>
<code class="notranslate">Traceback (most recent call last): File "linear_regression_tf_contrib_learn_custom_model.py", line 35, in &lt;module&gt; eval_loss = estimator.evaluate(input_fn=eval_input_fn) NameError: name 'eval_input_fn' is not defined</code>.</p>
<p dir="auto">Fix : Need to add the code <code class="notranslate">eval_input_fn = tf.contrib.learn.io.numpy_input_fn({"x": x_eval}, y_eval, 4, num_epochs=1000)</code> at line 30.</p>
<p dir="auto">Hello,</p>
<p dir="auto">I would like to submit that there is a programming bug on line 29 of the "custom model tutorial" within Getting Started with Tensorflow.</p>
<p dir="auto">The line should read:</p>
<p dir="auto">input_fn = tf.contrib.learn.io.numpy_input_fn({"x":x_train}, y_train, batch_size=4, num_epochs=1000)</p>
<p dir="auto">​Best regards.<br>
Jeff​</p>