Louise E. Sinks - A Tidymodels Tutorial: A Structural Approach
The rsample package is used to create splits and folds from your data. Here I use initial_split() to create a testing and training dataset. The resulting object is called an rsplit object and contains the original data and information about whether a record goes to testing or training. This object is not a flat dataframe but rather a nested list. The functions testing() and training() are used to create the appropriate tibbles for fitting.
Apr-12-2023, 21:13:11 GMT
- Technology: