Skip to main content

Templating tool with boiler plate code for building robust machine learning projects in python.

Project description

ML Template

ML template is an easy to use tool to automate the boiler plate code for most machine learning projects.

This tool creates a user-oriented project architecture for machine learning projects.

Modify the code under #TODO comments in the template project repository to easily adapt the template to your use-case.

How to use it?

  1. Install the package as - pip install mltemplate
  2. Then, simply run mltempate from your terminal and follow the prompts

And Voila!

This creates a project directory in your current folder similar to -

template
├── Dockerfile.cpu
├── Dockerfile.gpu
├── Makefile
├── pyproject.toml
├── poetry.lock
├── notebooks
├── README.md
└── template
    ├── cli
    │   ├── __init__.py
    │   ├── __main__.py
    │   ├── predict.py
    │   └── train.py
    ├── __init__.py
    ├── models.py
    ├── datasets.py
    └── transforms.py

All you have to do next is -

  1. Head to template/datasets.py and modify create a new dataset that will work for your use case
  2. Navigate to template/models.py and create a new model class with your sota (or not) architecture
  3. In template/transforms.py add transforms such as Normalizer, Denormalize etc.
  4. Follow the TODO steps in template/cli/train.py and template/cli/predict.py to make the necessary changes

Checkout the README.md in the template directory for further instructions on how to train, predict and also monitor your loss plots using tensor board.

Future Work

Currently this package only supports boilerplate creation for ML projects in pytorch

We plan to support tensorflow in the future.

License

Copyright © 2020 Sowmya Yellapragada

Distributed under the MIT License (MIT).

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

mltemplate-0.1.0.tar.gz (56.8 kB view details)

Uploaded Source

Built Distribution

mltemplate-0.1.0-py3-none-any.whl (57.0 kB view details)

Uploaded Python 3

File details

Details for the file mltemplate-0.1.0.tar.gz.

File metadata

  • Download URL: mltemplate-0.1.0.tar.gz
  • Upload date:
  • Size: 56.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/20.1.0

File hashes

Hashes for mltemplate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d3911ac8518280d6dfe6d1bd992a45664a4e824784974c5479e2c7a8bec104c3
MD5 114648493b79310a7af214047ef2c0a7
BLAKE2b-256 b82dd6056a7092e6d2cdb63bb441bbd44ee243c54bc8ec4f7a8f49b8b9b73978

See more details on using hashes here.

File details

Details for the file mltemplate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mltemplate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 57.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.0 Darwin/20.1.0

File hashes

Hashes for mltemplate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80bbfa33849e3e4d553f97d53f5ba841dee5c8ff32c83147143607d54ec3cde7
MD5 c37ea54ddee4df07c01c8394b9d5abec
BLAKE2b-256 96c7b2982a4e852c43f7701d71dde6fdf6d2c90cbbcb113ce532718f88d90a1f

See more details on using hashes here.

Supported by

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