Skip to content

Commit

Permalink
Merge pull request aymericdamien#59 from maxthyen/master
Browse files Browse the repository at this point in the history
Resolve syntax error in linear_regression example
  • Loading branch information
aymericdamien authored Aug 21, 2016
2 parents 1a44c34 + 2191d65 commit 2ef1c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/2_BasicModels/linear_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
print("Epoch:", '%04d' % (epoch+1), "cost=", "{:.9f}".format(c), \
"W=", sess.run(W), "b=", sess.run(b))

print("Optimization Finished!"
training_cost = sess.run(cost, feed_dict={X: train_X, Y: train_Y}))
print("Optimization Finished!")
training_cost = sess.run(cost, feed_dict={X: train_X, Y: train_Y})
print("Training cost=", training_cost, "W=", sess.run(W), "b=", sess.run(b), '\n')

#Graphic display
Expand Down

0 comments on commit 2ef1c6c

Please sign in to comment.