Description Usage Arguments Value Author(s) See Also Examples
Get cross-validation segments that have (as far as possible) the same ratio of all classes (if classes are present)
1 |
x |
a factor, character or numeric vector that describes class membership of a set of items, or, a numeric vector indicating unique indices of items, or, a numeric of length 1 that describes the number of items to segment (without any classes) |
fold |
the desired number of segments |
seed |
randomization seed for reproducibility |
a list where each element is a set of indices that defines the CV segment.
Henning Redestig
the cvsegments
function in the pls
package
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.