Learn R Programming

mikropml (version 1.6.1)

get_seeds_trainControl: 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)

Value

seeds for caret::trainControl()

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

Author

Kelly Sovacool, sovacool@umich.edu

Zena Lapp, zenalapp@umich.edu

Examples

Run this code
if (FALSE) {
get_seeds_trainControl(
  get_hyperparams_list(otu_small, "glmnet"),
  5, 100, 60
)
}

Run the code above in your browser using DataLab