Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Tathagatd96/642067db7b38d07bc673af9db76baffd to your computer and use it in GitHub Desktop.
Save Tathagatd96/642067db7b38d07bc673af9db76baffd to your computer and use it in GitHub Desktop.
with tf.Session() as sess:
sess.run(init)
for iter in range(num_iter):
x_batch , y_batch = ts_data.next_batch(batch_size,num_time_steps)
sess.run(train,feed_dict={x:x_batch,y:y_batch})
if iter %100==0:
mse=loss.eval(feed_dict={x:x_batch,y:y_batch})
print(iter, "\tMSE",mse)
y_pred=sess.run(outputs,feed_dict={x:x_new})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment