use_split | R Documentation |
Set of for resampling
use_split(
data,
strata = NULL,
resamples = NULL,
number_folds = NULL,
to_clipboard = TRUE
)
data |
Data |
strata |
Strata variable-navn |
resamples |
Type of resampling method |
number_folds |
num of resam |
to_clipboard |
copy to clipboard |
nothing
use_split(mtcars, mpg, to_clipboard = FALSE)
# Returns:
# library(tidymodels)
#
# set.seed(439)
# mtcars_split <-
# initial_split(mtcars, strata = mpg)
# mtcars_train <-
# training(mtcars_split)
# mtcars_test <-
# testing(mtcars_split)
#
#
# set.seed(274)
# mtcars_folds <-
# bootstraps(mtcars_train, strata = mpg, times = 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.