Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `for nstep in range(nSteps):
- i = nstep % nSteps
- batch_xs = np.reshape(x_train,(nSteps,bSize,nPixels))
- batch_ys = np.reshape(y_train,(nSteps,bSize,nLabels))
- sess.run(train_step, feed_dict={x: batch_xs[i], y_: batch_ys[i]})
- if nstep % 100 == 0:
- acc1 = sess.run(accuracy,feed_dict={x: x_train, y_:y_train})
- acc2 = sess.run(accuracy, feed_dict={x: x_test, y_: y_test})`
Add Comment
Please, Sign In to add comment