Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_splitter-0.0.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file python_splitter-0.0.3.tar.gz.

File metadata

  • Download URL: python_splitter-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for python_splitter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3b99e1d00277107a2abb74d8779627666558d6350a3aff5cd217490bfabe78d7
MD5 40e5d2bc1aff91bcc865a09238a70b53
BLAKE2b-256 aa64c8dfae5d6b43255e9139c8f8ae10d605e92436697373d35797f380f6968f

See more details on using hashes here.

File details

Details for the file python_splitter-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for python_splitter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17736dd380ee0276f2dfd9702f30c77488d531556b7f80b0aee5080a63efb3ac
MD5 dccddc00a502e90ecbfab62b7a475151
BLAKE2b-256 b47e55def6e8758b8299f12ad8919430f104e4e4dc85487dd33121d7ba4305f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page