title: Plot separate learning curves with tensorboard
body: <p><a href="https://i.stack.imgur.com/58qA1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/58qA1.png" alt="myplot: accuracy"></a></p>
  
  <p>Running a NN model with tensorflow, I want to plot the accuracy score on both training set and test set. However, the plot tensorboard showed me looked weird: there was only one 'accuracy' tab there, and it plotted the two scores on that same figure. So basically, every step on the x axis has two points connected together. How can I plot two lines (training accuracy and test accuracy) separately on that figure?</p>
  
  <p>Here's a snippet of my code:</p>
  
  <p><code>loss_summary = tf.summary.scalar('loss', loss)
  acc_summary = tf.summary.scalar('accuracy', accuracy)</code></p>
  
  <p><code>summary_loss, summary_acc_train = sess.run([loss_summary, acc_summary], feed_dict={X: X_train, y: y_train})
  summary_acc_test = sess.run([acc_summary], feed_dict={X: X_test, y: y_test})</code></p>
  
  <p><code>summary_writer.add_summary(summary_loss, epoch)
  summary_writer.add_summary(summary_acc_train, epoch)
  summary_writer.add_summary(summary_acc_test, epoch)</code></p>