3
$\begingroup$

I think the two functions are all to split the data, but I really can't get the difference between both of them, even I has read the help manual of them.

$\endgroup$

1 Answer 1

5
$\begingroup$

The help page for those functions says:

"createFolds splits the data into k groups"

and

"A series of test/training partitions are created using createDataPartition"

So, createDataPartition does one or more splits of the data (into two groups). You saw that in your other post that it can be used to create a single split.

createFolds will split the data into K groups of roughly equal size (presumably to use with K fold CV)

$\endgroup$
1
  • $\begingroup$ Thank you. I think I can understand more about it now, I'll try more. $\endgroup$
    – Archer
    Commented Nov 17, 2013 at 3:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.