title: How to perform cross validation(K-fold) in julia?
body: <p>Suppose I have a dataset with two columns. I have built linear regression model on my dataset, Now my question is how do I check the accuracy of my model.</p>
  
  <p>I found that answer to my question is applying K-fold on my dataset. I know how K-fold works but I have no idea how to implement K-fold in my Julia program.</p>
  
  <pre><code>#suppose I have two columns x and y in my dataset
  
   x= [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
   y=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]
  
  # now how do I use K-fold to split dataset and also evaluate my algorithm?
  </code></pre>