See this links for the sources below for more information as well as
?AmesHousing::make_ames
.
For these data, the training materials typically use:
library(tidymodels)set.seed(4595)
data_split <- initial_split(ames, strata = "Sale_Price")
ames_train <- training(data_split)
ames_test <- testing(data_split)
set.seed(2453)
ames_folds<- vfold_cv(ames_train)