Nov-03-2020, 12:40 AM
Use scikitlearn's sklearn.model_selection.train_test_split function twice. Once to split off your validation set, then once to get your train and test functions.
In other words, the wheel has been invented already. Don't try to write the routine that does this rather than use a fast, debugged routine that already exists.
In other words, the wheel has been invented already. Don't try to write the routine that does this rather than use a fast, debugged routine that already exists.