get_seeds_trainControl {mikropml} | R Documentation |
Get seeds for caret::trainControl()
Description
Adapted from this Stack Overflow post and the trainControl documentation.
Usage
get_seeds_trainControl(hyperparams_list, kfold, cv_times, ncol_train)
Arguments
hyperparams_list |
Named list of lists of hyperparameters. |
kfold |
Fold number for k-fold cross-validation (default: |
cv_times |
Number of cross-validation partitions to create (default: |
ncol_train |
number of columns in training data |
Value
seeds for caret::trainControl()
Author(s)
Kelly Sovacool, sovacool@umich.edu
Zena Lapp, zenalapp@umich.edu
Examples
## Not run:
get_seeds_trainControl(
get_hyperparams_list(otu_small, "glmnet"),
5, 100, 60
)
## End(Not run)
[Package mikropml version 1.6.1 Index]