Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Update 03_linreg_starter.py #114

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/03_linreg_starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@
for x, y in data:
# Execute train_op and get the value of loss.
# Don't forget to feed in data for placeholders
_, loss = ########## TO DO ############
total_loss += loss
_, l = ########## TO DO ############
total_loss += l

print('Epoch {0}: {1}'.format(i, total_loss/n_samples))

Expand All @@ -91,4 +91,4 @@
# plt.plot(data[:,0], data[:,1], 'bo', label='Real data')
# plt.plot(data[:,0], data[:,0] * w_out + b_out, 'r', label='Predicted data')
# plt.legend()
# plt.show()
# plt.show()