A Python package that generates a folder structure for machine learning/deep learning projects
Project description
mlskeleton
A Python package that generates a folder structure for machine learning/deep learning projects.
Installation
To install the package, run the following command:
pip install mlskeleton
Usage
To generate the folder structure, run the following command:
mlskeleton /path/to/root/folder
This will create the following folder structure at the specified root folder path:
project_name/
|
|- data/
| |- raw/
| | |- raw_data_file_1.csv
| | |- raw_data_file_2.csv
| | ...
| |
| |- processed/
| | |- processed_data_file_1.csv
| | |- processed_data_file_2.csv
| | ...
|
|- models/
| |- model_1.pkl
| |- model_2.pkl
| ...
|
|- notebooks/
| |- data_exploration.ipynb
| |- model_training.ipynb
| |- model_evaluation.ipynb
| ...
|
|- src/
| |- data/
| | |- data_processing.py
| | |- data_cleaning.py
| | ...
| |
| |- features/
| | |- feature_extraction.py
| | |- feature_selection.py
| | ...
| |
| |- models/
| | |- model_training.py
| | |- model_evaluation.py
| | ...
| |
| |- visualization/
| | |- visualizations.py
| | ...
| |
| |- utils/
| | |- utils.py
| | ...
|
| |- tests/
| | |- test_data.py
| | |- test_features.py
| | |- test_visualization.py
| | |- test_models.py
| | |- test_utils.py
| | ...
|
|-- reports/
| |-- figures/
| |-- presentations/
| |-- papers/
|
|- .gitignore
|- requirements.txt
|- README.md
Explanation:
data
: This folder should contain all the data required for the project, both raw and processed. It is a good idea to keep the raw data separate from the processed data to make it clear which data has been transformed in some way and how.models
: This folder should contain the trained machine learning models, saved in a format that allows them to be easily loaded and used (e.g. using thepickle
library in Python).notebooks
: This folder should contain Jupyter notebooks used for data exploration, model training, model evaluation, and any other analysis.src
: This folder should contain the source code for the project, organized into subfolders for data processing,features, model training and evaluation, visualization, etc.src/data/
: This folder should contain code for loading and interacting with the data.src/features/
: This folder should contain code for generating features from the data.src/models/
: This folder should contain code for building and training machine learning models.src/visualization/
: This folder should contain code for creating visualizations of the data and model performance.src/utils/
: This folder should contain utility code that is used by other parts of the project.tests/
: This folder should contain test scripts or modules for testing the code in thesrc/
directory.
reports/
: This folder should contain any figures, presentations, or papers that are created as part of the project..gitignore
: This file should contain a list of file and folder names that should be ignored by Git (e.g. large data files that should not be committed to the repository).requirements.txt
: This file should contain a list of the libraries and packages required to run the code in the project, so that they can be easily installed by someone else who wants to run the code.README.md
: This file should contain a brief description of the project and instructions for how to set up and run the code.
Contributing
If you want to contribute to the package, please follow the guidelines in the CONTRIBUTING.md
file.
License
The package is licensed under the MIT License. See the LICENSE
file for more information.
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
mlskeleton-0.0.4.tar.gz
(4.6 kB
view details)
File details
Details for the file mlskeleton-0.0.4.tar.gz
.
File metadata
- Download URL: mlskeleton-0.0.4.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e35a5420b65951580c0a01831a5613c3cf271ba7bf57b9def77cfcc429f8a0d |
|
MD5 | 179c05c4386ba56c8bec8a20ec390616 |
|
BLAKE2b-256 | aa080bb6f6e3f7b69c6cc264b961cf4c5b483c2b00d55fe7ba5783411f402180 |