Github user MLnick commented on a diff in the pull request: https://github.com/apache/spark/pull/13894#discussion_r69132570 --- Diff: mllib/src/main/scala/org/apache/spark/ml/tuning/CrossValidator.scala --- @@ -56,7 +56,10 @@ private[ml] trait CrossValidatorParams extends ValidatorParams { /** * :: Experimental :: - * K-fold cross validation. + * CrossValidator begins by splitting the dataset into a set of folds which are + * used as separate training and test datasets e.g., with k=3 folds, CrossValidator + * will generate 3 (training, test) dataset pairs, each of which uses 2/3 of the data + * for training and 1/3 for testing. --- End diff -- It may be worth mentioning that each fold is non-overlapping, and that each fold will be used in test exactly once. See [wikipedia](https://en.wikipedia.org/wiki/Cross-validation_(statistics)#k-fold_cross-validation).
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org