stanford-tensorflow-tutorials icon indicating copy to clipboard operation
stanford-tensorflow-tutorials copied to clipboard

03_linear_regression_sol.py code issue

Open snehotosh opened this issue 8 years ago • 1 comments
trafficstars

The current code is throwing error in the line

Step 9: output the values of w and b

w, b = sess.run([w, b])

Hence,below code should be changed

Step 3: create weight and bias, initialized to 0

w = tf.Variable(0.0, name='weights') to tf.Variable(0.0, name='w') b = tf.Variable(0.0, name='bias') to tf.Variable(0.0, name='b')

snehotosh avatar Sep 02 '17 04:09 snehotosh

  1. download from this http://yann.lecun.com/exdb/mnist/ 2.put 4 download file into your custom file
  2. change the code eg: mnist = input_data.read_data_sets('/home/neo/data/mnist', one_hot=True)

OceanWong1991 avatar Jan 02 '18 09:01 OceanWong1991