Closed r02b closed 2 years ago
If you want to split files in single folder, do the following:
input
dummy
within input
and place all files in dummy
.splitfolders --ratio .8 .1 .1 -- input
If you have an array of data, take a look at the following function from scikit-learn: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.train_test_split.html
I don't think creating dummy folders is an effective solution.
Since splitting data into (test, train, validation) sets is relevant to all data types, not just ones that are related different classes, having the option to use split-folder on a general folder, i.e. one that contains actual data and does not comply with the subdir ('class1', 'class2',...) hierarchy, would make this package relevant to a much larger crowd.