forked from SchlossLab/mikropml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
get_seeds_trainControl.Rd
38 lines (34 loc) · 1000 Bytes
/
get_seeds_trainControl.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cross_val.R
\name{get_seeds_trainControl}
\alias{get_seeds_trainControl}
\title{Get seeds for \code{caret::trainControl()}}
\usage{
get_seeds_trainControl(hyperparams_list, kfold, cv_times, ncol_train)
}
\arguments{
\item{hyperparams_list}{Named list of lists of hyperparameters.}
\item{kfold}{Fold number for k-fold cross-validation (default: \code{5}).}
\item{cv_times}{Number of cross-validation partitions to create (default: \code{100}).}
\item{ncol_train}{number of columns in training data}
}
\value{
seeds for \code{caret::trainControl()}
}
\description{
Adapted from \href{https://stackoverflow.com/a/32598959}{this Stack Overflow post}
and the \link[caret]{trainControl} documentation.
}
\examples{
\dontrun{
get_seeds_trainControl(
get_hyperparams_list(otu_small, "glmnet"),
5, 100, 60
)
}
}
\author{
Kelly Sovacool, \email{sovacool@umich.edu}
Zena Lapp, \email{zenalapp@umich.edu}
}
\keyword{internal}