https://github.com/markkvdb/data-splitter
Simple command line program that splits folder in train and test set
https://github.com/markkvdb/data-splitter
Last synced: 2 months ago
JSON representation
Simple command line program that splits folder in train and test set
- Host: GitHub
- URL: https://github.com/markkvdb/data-splitter
- Owner: markkvdb
- License: gpl-3.0
- Created: 2019-10-24T20:59:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-05T14:06:44.000Z (over 6 years ago)
- Last Synced: 2025-03-21T15:30:35.406Z (about 1 year ago)
- Language: Python
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# data-splitter
Simple command line program that splits folder in train and test set. The user provides a folder with files and the program will split the files over a train and test folder within the given folder.
## Installation
```pip install git+https://github.com/markkvdb/data-splitter.git#egg=data-splitter```
The installer will place the executables **data_splitter** in your $PATH.
## Usage
Call the script from the command line. The help page is as follows.
```bash
Usage: data_splitter.py [OPTIONS] FOLDER
Options:
--train INTEGER Percentage of files for train set.
--help Show this message and exit.
```
If you specify the *--train* flag between 0 and 100 you can set the percentage of files that should go into the train folder.