Description Usage Arguments Details Value See Also Examples
The function generates data for cross-validation from pre-computed folds
1 | do.stratified.cv.data.from.folds(examples, positives, folds, k = 10)
|
examples |
vector of integer: indices of the examples |
positives |
vector of integer: Indices of the positive examples. The indices refer to the indices of |
folds |
vector of indices : its length is equal to examples, with values in the interval [0,kk). The value indicates the partition in the cross validation step of the class |
k |
number of folds (def = 10) |
The folds are separated for positive and negative examples. The elements included in each fold are obtained from the vector of fold indices folds
.
a list with two components;
fold.non.positives |
a list with |
old.positives |
a list with |
1 | do.stratified.cv.data.from.folds(1:100, 1:10, folds=sample(rep((0:4),20)), k = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.