A package that Splits Class_Folders to Train, Test, Val folders automatically by shuffling media for machine learning.
Project description
python_splitter
Currently experimenting and planning! More Features will be added soon...
Developed by Bharat Adhikari (c) 2022
Examples of How To Use (Buggy Alpha Version)
Creating Train-Test folders
import python_splitter
$ python_splitter.split_from_folder("SOURCE_FOLDER", train = 0.5, test = 0.3, val = 0.2)
$ python_splitter.split_from_folder("SOURCE_FOLDER", train = 0.5, test = 0.3)
# Note: Both above code gives same result because 0.5+0.3=0.8 .
So, val = 0.2 is calculated automatically.
$ python_splitter.split_from_folder("SOURCE_FOLDER, train = 0.5, test = 0.5)
But, this will not create "val" folder because train+test=0.5+0.5 =1.0
# SOURCE_FOLDER = PATH_TO_THE_FOLDER_CONTAINING_IMAGE_CLASSES_FOLDERS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_splitter-0.0.1.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for python_splitter-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 683e8a498fc4a0f29ff36e0ed00d3bffb64173e37cca252e6f3719d14f173bb9 |
|
MD5 | 8bd3cbbcaebfa82ba43783534f435e73 |
|
BLAKE2b-256 | fb5644473eb383a704202461b5808fb15095ce05e7fa4edcac1117fbfc4cdd06 |