I have code for splitting a data set dfXa of size 351 by 14 into 10 fold and choosing one fold for validation denoted by dfX_val of size 35 by 14 and resting 9 fold for training by dfX_train of size 316 by 14.
But how to do this for a 5-fold CV? I want to implement 5-fold CV without using the sklearn.