Guest User

Untitled

a guest
Jul 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. `for nstep in range(nSteps):
  2. i = nstep % nSteps
  3. batch_xs = np.reshape(x_train,(nSteps,bSize,nPixels))
  4. batch_ys = np.reshape(y_train,(nSteps,bSize,nLabels))
  5. sess.run(train_step, feed_dict={x: batch_xs[i], y_: batch_ys[i]})
  6. if nstep % 100 == 0:
  7. acc1 = sess.run(accuracy,feed_dict={x: x_train, y_:y_train})
  8. acc2 = sess.run(accuracy, feed_dict={x: x_test, y_: y_test})`
Add Comment
Please, Sign In to add comment