R/classify_text.r
split_using_srs.Rd
Creating training and testing data based on stratified random sampling (SRS) and preprocessing steps
split_using_srs(input_data, category, rec, prop_ratio = 0.8, pull_id = NULL)
The data to be trained and tested.
The target binary category.
The recipe (preprocessing steps) that will be applied to the training and test data
The ratio used to split the data. The default value is 0.8
The identifier used to identify training and test data values. The default value is NULL.
A list output that contains train_x_class, test_x_class, train_y_class, test_y_class.