get_seeds_trainControl: Get seeds for 'caret::trainControl()'

View source: R/cross_val.R

get_seeds_trainControlR 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: 5).

cv_times

Number of cross-validation partitions to create (default: 100).

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)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.