A command-line tool to generate structured ML project templates with documentation and best practices
Project description
ML Project Generator
๐ ml-project-generator (v2.0.0) is a powerful Python package that automates the creation of structured machine learning project templates. It helps you focus on development rather than setup by providing ready-to-use project structures with specialized templates for different ML domains.
โจ Features
Project Templates
- Basic ML: Standard ML project structure with scikit-learn support
- Deep Learning: PyTorch-based project with neural network support
- NLP: Natural Language Processing project with transformers
- Computer Vision: Image processing project with PyTorch and OpenCV
Each Template Includes
- ๐ Organized directory structure
- ๐ Example notebooks with step-by-step guides
- ๐ง Pre-configured dependencies
- ๐ Template-specific utility functions
- ๐ Data preprocessing pipelines
- ๐งช Model training scripts
- ๐ Visualization utilities
Project Structure
my_ml_project/
โโโ data/
โ โโโ raw/ # Original data
โ โโโ processed/ # Processed data
โ โโโ external/ # External data sources
โ โโโ interim/ # Intermediate data
โโโ models/
โ โโโ logs/ # Training logs
โโโ notebooks/ # Example notebooks
โโโ src/
โ โโโ data/ # Data processing scripts
โ โโโ models/ # Model implementations
โ โโโ utils/ # Utility functions
โโโ config/ # Configuration files
โโโ reports/ # Project reports
โโโ tests/ # Unit tests
โโโ scripts/ # Automation scripts
๐ฅ Installation
From PyPI (Recommended)
pip install ml-project-generator
From GitHub
pip install git+https://github.com/AarambhaAnta/ml-project-generator.git
Development Installation
git clone https://github.com/AarambhaAnta/ml-project-generator.git
cd ml-project-generator
pip install -e .
๐ Usage
Basic Usage
ml-gen my_project
With Template Selection
# Basic ML template (default)
ml-gen my_project
# Deep Learning template
ml-gen my_project --template deep_learning
# NLP template
ml-gen my_project --template nlp
# Computer Vision template
ml-gen my_project --template computer_vision
With Virtual Environment
ml-gen my_project --venv
๐ Example Notebooks
Each template includes specialized notebooks:
Basic ML
- Data exploration and analysis
- Model training and evaluation
Deep Learning
- Data preparation and PyTorch setup
- Model training with PyTorch
NLP
- Text preprocessing
- Transformer model training
Computer Vision
- Image preprocessing
- Vision model training
๐ Development
-
Clone the repository:
git clone https://github.com/AarambhaAnta/ml-project-generator.git
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows
-
Install dependencies:
pip install -r requirements.txt
-
Run tests:
python -m pytest
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ Acknowledgments
- Inspired by the cookiecutter data science project template
- Built with โค๏ธ for the ML community
Made with โค๏ธ by @AarambhaAnta
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ml_project_generator-2.0.2.tar.gz.
File metadata
- Download URL: ml_project_generator-2.0.2.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19a9785ee283fa220d56917947a9daac73bf7f8ec2ac9f30f9b1c05548b4454a
|
|
| MD5 |
c24ad0b3fffeb868711afd1378f354d6
|
|
| BLAKE2b-256 |
69a018a19453e9978b2eb3b6e2f2beabc473772b01448650b09a8e8b38036201
|
File details
Details for the file ml_project_generator-2.0.2-py3-none-any.whl.
File metadata
- Download URL: ml_project_generator-2.0.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b381efe373046b435aff8ae4685a0315aedce5800b07dd5fc70fd3cfdec8b0dc
|
|
| MD5 |
9b781570e641cdb389f46168d055282c
|
|
| BLAKE2b-256 |
b3e96321bb72f3a18166fd21e0e172fc38f61640dc01c62ab5cf26c86ee1f0e7
|