stanford-tensorflow-tutorials
stanford-tensorflow-tutorials copied to clipboard
03_linear_regression_sol.py code issue
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')
- download from this http://yann.lecun.com/exdb/mnist/ 2.put 4 download file into your custom file
- change the code eg: mnist = input_data.read_data_sets('/home/neo/data/mnist', one_hot=True)