View source: R/function_cv_bucket_maker.R
make_buckets | R Documentation |
takes training data and sorts it into buckets, one for each fold.
make_buckets(train.Y, folds)
train.Y |
numeric matrix, training data |
folds |
integer, number of buckets to build. |
named vector
some.mat <- matrix(1:20, nrow = 2) colnames(some.mat) <- paste0("some.mat", 1:ncol(some.mat)) n.folds <- 5 mapped.buckets <- make_buckets( train.Y = some.mat , folds = n.folds ) table(mapped.buckets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.