Description Usage Arguments Value Examples
Create folds used in the pedis train function
1 | create_folds(y, k = 5, times = 5, seed = 93864)
|
y |
The outcome vector (as produced by prepare_X_y) |
k |
Optional integer, number of folds, default = 5 |
times |
Optional integer, number of repeats, default = 5 |
seed |
Optional |
List containing the folds
1 2 3 | predis <- data(pedis)
X_y <- prepare_X_y(pedis, outcome = "minor_amputation", vars = c("p", "e"))
folds <- create_folds(X_y$y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.