I have been using cross validation process in order to train a Naive Bayes Model and I realize that it uses kFold method to get the random sampling data in order to create the folds. This method return an Array[(RDD[T], RDD[T])]
of tuples, which I think are the set of different combination of the folds for training and testing.
My question is whether there is any specific reason because the API does not allow you to define your own array of folds. I need that functionality and I am guessing that I will have to write my own CrossValidator class in order to support that capability. I am also open to receive advices.