View source: R/utils-create-splits.R
| create_splits | R Documentation |
Create a splits object.
create_splits(.data, .split_type = "initial_split", .split_args = NULL)
.data |
The data being passed to make a split on |
.split_type |
The default is "initial_split", you can pass any other split
type from the |
.split_args |
The default is NULL in order to use the default split arguments. If you want to pass other arguments then must pass a list with the parameter name and the argument. |
Create a splits object that returns a list object of both the
splits object itself and the splits type. This function supports all splits
types from the rsample package.
A list object
Steven P. Sanderson II, MPH
Other Utility:
check_duplicate_rows(),
core_packages(),
create_workflow_set(),
fast_classification_parsnip_spec_tbl(),
fast_regression_parsnip_spec_tbl(),
full_internal_make_wflw(),
install_deps(),
load_deps(),
match_args(),
quantile_normalize()
create_splits(mtcars, .split_type = "vfold_cv")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.