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.
Release files for productml 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| productml-0.0.4.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| productml-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / productml-0.0.4.tar.gz
| Download URL | productml-0.0.4.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0285a7ea111d0be8e1d294ce482f3061a33ede785ba4a59f5b9e45beccf12d87
|
|
BLAKE2b-256 checksum How to use checksums |
68f2790b34119151eddd56ffdac422e8dbd40c9219ddbbc8a3b36e0f4fb663e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.13
|
Release files / productml-0.0.4-py3-none-any.whl
| Download URL | productml-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
069a68e727656b11b73705866713fb11605dc4d9e04fcbdb012926d2148964e1
|
|
BLAKE2b-256 checksum How to use checksums |
d403fe2c47a3d5710694f376de3d54bb7fcd02f8f21182ecf47aed5df36e08fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.7.13
|