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.3.tar.gz
(4.3 kB
view hashes)
Built Distribution
Close
Hashes for python_splitter-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17736dd380ee0276f2dfd9702f30c77488d531556b7f80b0aee5080a63efb3ac |
|
MD5 | dccddc00a502e90ecbfab62b7a475151 |
|
BLAKE2b-256 | b47e55def6e8758b8299f12ad8919430f104e4e4dc85487dd33121d7ba4305f5 |