title: How to perform k-fold cross validation with tensorflow?
body: <p>I am following <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/tutorials/monitors" rel="noreferrer">the IRIS example of tensorflow</a>.</p>
  
  <p>My case now is I have all data in a single CSV file, not separated, and I want to apply k-fold cross validation on that data.</p>
  
  <p>I have </p>
  
  <pre><code>data_set = tf.contrib.learn.datasets.base.load_csv(filename="mydata.csv",
                                                     target_dtype=np.int)
  </code></pre>
  
  <p>How can I perform k-fold cross validation on this dataset with multi-layer neural network as same as IRIS example?</p>