create_split: Create data partitioning key

Description Usage Arguments Value

View source: R/transformations.R

Description

If the label is categorical, a stratified data split (based on the label variable) is created using the createDataPartition function in the caret-package, based on split proportions defined in configuration. Othervise, a random split is made. A new column is added to the type-set data, which is returned.

Usage

1
create_split(main, set)

Arguments

main

main data object

set

config object

Value

main data object with data split column added


Bilot/AI-jack-opensource-R documentation built on July 28, 2020, 1:15 a.m.