get_train_and_test: get_train_and_test

get_train_and_testR Documentation

get_train_and_test

Description

get_train_and_test

Usage

get_train_and_test(df, n_top = 5, shuffle = TRUE, balanced = TRUE,
  pct = 1/5)

Arguments

df

input tibble.. must be 'glo_df'

n_top

an integer for groupen the most 'n_top' classes and the rest to another signle class.

shuffle

shuffle the rows before splitting

balanced

balance the number of classes in train and test.

pct

percentage to split into test.

Value

'sagsnr', 'test' and 'label'.. must bed left joined to 'glo_df'


anderslaunerbaek/homemade documentation built on Sept. 18, 2022, 6:47 a.m.