R/splendid_model.R
boot_train.Rd
Recursively create training set indices ensuring class representation in every bootstrap resample
boot_train(data, class, n, stratify = FALSE)
data frame with rows as samples, columns as features
true/reference class vector used for supervised learning
number of bootstrap replicates to generate
logical; if TRUE
, the bootstrap resampling is performed
within each strata of class
to ensure the bootstrap sample contains the
same proportions of each strata as the original data.