Splitting functions

mouffet.data.split.random_split(path, split_props, extensions)[source]
mouffet.data.split.split_folder(path, split_props, extensions)[source]

Function if files are ordered with folders. Apply the split to each subfolder with files and continues recursively

Parameters:
  • path (Path) – path where to start searching for files

  • split_props (list) – list of proportions for each split

  • extensions (list) – list of file extensions to include

Returns:

list with all the splits

Return type:

list

mouffet.data.split.split_list(data, split_props)[source]