Skip to main content

Library for Akumyn product-level inference.

Project description

Product-ml

A package built by DevsDoData for product-level inference.

Includes functionality for ML lifecycle including data preparation and model training.

Used to sync key workflows across platforms locally, cloud (Colab) notebooks and deployment.

Setup Venv

Google Colab uses Python version 3.7.13 and we need to match that. Otherwise it would cause issues.

sudo apt update && sudo apt install python3.7
sudo apt install python3.7-distutils
pipenv install --python="/usr/bin/python3.7"

And then install everything with

python3 -m pipenv install \
    loguru wandb hydra-core \
    fuzzywuzzy \
    torchvision \
    opencv-python scikit-learn numpy matplotlib \
    pytest \
    twine

Distributing the package

Specify the dependencies and build the package

pipenv requirements | sed 1d > requirements.txt

python3 ./productml/setup.py install sdist bdist_wheel

Then create a new dir for testing.

cd ../ && mkdir test-dir && cd test-dir

touch activate.sh < echo ". ./venv/bin/activate"

pip3 install virtualenv && virtualenv venv

source activate.sh

touch test.py && test.py < echo "from productml.data.labelling import text_matching"

python3 test.py

And you should not get an ImportError or any other error for that matter.

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

productml-0.0.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

productml-0.0.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file productml-0.0.4.tar.gz.

File metadata

  • Download URL: productml-0.0.4.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for productml-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0285a7ea111d0be8e1d294ce482f3061a33ede785ba4a59f5b9e45beccf12d87
MD5 a6fbeb67bea68690f213e34d0fada647
BLAKE2b-256 68f2790b34119151eddd56ffdac422e8dbd40c9219ddbbc8a3b36e0f4fb663e1

See more details on using hashes here.

File details

Details for the file productml-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: productml-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.13

File hashes

Hashes for productml-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 069a68e727656b11b73705866713fb11605dc4d9e04fcbdb012926d2148964e1
MD5 7a1ebffb82269e68ec46279030211dd9
BLAKE2b-256 d403fe2c47a3d5710694f376de3d54bb7fcd02f8f21182ecf47aed5df36e08fa

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