Description Usage Arguments Details Value See Also Examples

View source: R/hyperSMURF2.0.R

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 |

`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)
``` |

hyperSMURF documentation built on April 30, 2018, 1:04 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.