Skip to main content

A simple cli utility to generate ML project structure for quickly starting ML projects

Project description

Project Structure for MLflow integrated ML Projects

This cli tool generates the following directory structure for quickstart ML projects

installaton:

pip install aihubcli

example use:
aihubcli create myProject

myProject/
│
├── input/
│   ├── raw/                <-- Raw data here
│   ├── interim/            <-- Any intermediate data, to pause and continue experiments
│   └── processed/          <-- Processed data ready for ML pipeline
│
├── output/
│   ├── models/             <-- Model pickle or model weights stored here
│   ├── artifacts/          <-- Serialized artifacts like LabelEncoder, Vectorizer etc
│   ├── figures /            <-- All plots and visualizations goes here
│   └── results/            <-- If the results needs to be stored for review, save here
│
├── notebooks/              <-- All notebooks and experiments resides here
│   ├── eda_plots.ipynb     <-- ┌───────────────────────────────────────────┐
│   ├── ml_rnn.ipynb        <-- │ free to name notebooks any way you prefer │
│   └── ml_seq2seq.ipynb    <-- └───────────────────────────────────────────┘
│
├── src/                    <-- Final program, with training and prediction pipeline
│   ├── __init__.py         <-- Makes src a Python module                    
│   ├── preprocess.py       <-- code related to preprocessing the data and storing it in input/processed/
│   ├── model.py            <-- model definition here, can be used in train or prediction
│   ├── train.py            <-- all code related to training model goes here
│   ├── hyperopt.py         <-- hyperparameter optimizations related code
│   ├── package.py          <-- packaging the trained model with preprocessing logic for MLflow
│   ├── predict.py          <-- prediction logic, usually loads the model from Mlflow registry and predict
│   └── server.py           <-- any API interface like Flask etc. Create as needed
│
README.md                   <-- Description and instruction about the project
MLProject                   <-- MLflow project file. If you want to use this directory as MLflow project
requirements.txt            <-- python dependencies
config.yml                  <-- configuration key value pairs in yaml format

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

aihubcli-1.0.1.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

aihubcli-1.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file aihubcli-1.0.1.tar.gz.

File metadata

  • Download URL: aihubcli-1.0.1.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for aihubcli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 443b0141dd1da259bf409b74bbba6122bfc24c861bae84d5eba39292892afa1b
MD5 1cd391bc1f8e95be688851ecba2b1ba3
BLAKE2b-256 6cdcf43f82dc31e15da66dfa4ef26f96f0ab28481bb53a9f13a85aa04583bcdb

See more details on using hashes here.

File details

Details for the file aihubcli-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: aihubcli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for aihubcli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cceaa3067f2c08d776c770244b16adef8daff5bb4f585cc33639982ec44817ec
MD5 cbab11bff9e913af92591d458b2eac58
BLAKE2b-256 33822e57175ee61c0728c5249141761a02db68c236fabe0661631a60078c2b05

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