Skip to main content

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

  1. Clone the repository:

    git clone https://github.com/AarambhaAnta/ml-project-generator.git
    
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On macOS/Linux
    venv\Scripts\activate     # On Windows
    
  3. Install dependencies:

    pip install -r requirements.txt
    
  4. Run tests:

    python -m pytest
    

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ml_project_generator-2.0.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

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

ml_project_generator-2.0.2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

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

Hashes for ml_project_generator-2.0.2.tar.gz
Algorithm Hash digest
SHA256 19a9785ee283fa220d56917947a9daac73bf7f8ec2ac9f30f9b1c05548b4454a
MD5 c24ad0b3fffeb868711afd1378f354d6
BLAKE2b-256 69a018a19453e9978b2eb3b6e2f2beabc473772b01448650b09a8e8b38036201

See more details on using hashes here.

File details

Details for the file ml_project_generator-2.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for ml_project_generator-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b381efe373046b435aff8ae4685a0315aedce5800b07dd5fc70fd3cfdec8b0dc
MD5 9b781570e641cdb389f46168d055282c
BLAKE2b-256 b3e96321bb72f3a18166fd21e0e172fc38f61640dc01c62ab5cf26c86ee1f0e7

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