Description Usage Arguments Details Value See Also Examples
View source: R/find.division.strat.R
Function to determine a random partition of the labeled input vector into a fixed number of folds, such that each fold has around the same proportion of two-class labels.
1 | find.division.strat(labels, vett, n_fold)
|
labels |
binary -1/1 label vector. labels[i] is the label for the element vett[i]. |
vett |
vector to be partitioned |
n_fold |
number of folds in which the argument vett must be partitioned |
The input vector "vett" is randomly partitioned into "n_fold" folds ensuring each fold contains roughly the same proportions of positives and negative labels, according to the labeling "labels"
List with n_fold elements, the i-th element is a vector corresponding to i-th fold.
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.