I know the purpose of set.seed() in general, but when and why should we use this function in a typically tidymodels-construct? For example, Julia does this:
library(tidymodels) set.seed(123) trees_split <- initial_split(trees_df, strata = legal_status) trees_train <- training(trees_split) trees_test <- testing(trees_split)
But why? For which function does she use set.seed()? Let's say I'm building an ensemble with tidymodels, consisting n different model-types. Where should I use set.seed() and when does it needs another, new set.seed()? And is it possible that two consecutive: 'set.seed(123)' could colide with each other? Is it danger to forget set.seed()?