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

Fix nits #74

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
4 changes: 2 additions & 2 deletions examples/03_logistic_regression_mnist_sol.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Step 1: Read in data
# using TF Learn's built in function to load MNIST data to the folder data/mnist
mnist = input_data.read_data_sets('/data/mnist', one_hot=True)
mnist = input_data.read_data_sets('./data/mnist', one_hot=True)

# Step 2: create placeholders for features and labels
# each image in the MNIST data is of shape 28*28 = 784
Expand Down Expand Up @@ -83,7 +83,7 @@

for i in range(n_batches):
X_batch, Y_batch = mnist.test.next_batch(batch_size)
accuracy_batch = sess.run([accuracy], feed_dict={X: X_batch, Y:Y_batch})
accuracy_batch = sess.run(accuracy, feed_dict={X: X_batch, Y:Y_batch})
total_correct_preds += accuracy_batch

print('Accuracy {0}'.format(total_correct_preds/mnist.test.num_examples))
Expand Down