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?
- Install the package as -
pip install mltemplate
- 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 -
- Head to
template/datasets.py
and modify create a new dataset that will work for your use case - Navigate to
template/models.py
and create a new model class with your sota (or not) architecture - In
template/transforms.py
add transforms such as Normalizer, Denormalize etc. - Follow the
TODO
steps intemplate/cli/train.py
andtemplate/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
Built Distribution
File details
Details for the file mltemplate-0.1.2.tar.gz
.
File metadata
- Download URL: mltemplate-0.1.2.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.5 Linux/5.4.0-48-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24c9a750e5b4ffa3fa7bc02d9565f5f1efa79f8e08bc5250d7f465b45e31f53 |
|
MD5 | 2214a325a0e9c8177ab30878e8a8981a |
|
BLAKE2b-256 | bb85c61e3a66fdb0da893ba70f9105c5341ce80be834ea79af8b7879b36744f0 |
File details
Details for the file mltemplate-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mltemplate-0.1.2-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.9 CPython/3.8.5 Linux/5.4.0-48-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015dc76bd4ed43aef22c1b681e40ceb4cb79826318aae980b23d3b9291c53bf7 |
|
MD5 | 3ca4da20191e83bcf8a30485eafff85c |
|
BLAKE2b-256 | e5584f19327c173ffa53f0dc36c997d5d167beb15ae966c7ae2e31e2d4713290 |