Service for ...
Project description
Sample model
Test repo for hands-on part of the first MLOps lecture.
How to use it
from mlops_models import ConstantPredictionModel
model = ConstantPredictionModel(0)
model.predict("")
> 0
from mlops_models import ConstantPredictionModel
model = ConstantPredictionModel(1)
model.predict("")
> 1
How to build it
To build a python package, run the following command:
python setup.py sdist bdist_wheel
This will generate a dist
folder with the following structure:
mlops_models-0.1.0-py3-none-any.whl
mlops_models-0.1.0.tar.gz
How to test it
To run the tests, run the following command:
python -m pytest
How to install it
To install the package, run the following command:
pip install mlops_models-0.1.0-py3-none-any.whl
To install it in development mode, run the following command:
pip install -e .
How to run it
To run the package, run the following command:
python -m mlops_models
How to publish it
To publish the package, run the following command:
python -m twine upload dist/*
To publish package in GitHub, run the following command:
python -m github-release upload --tag v0.1.0 --user FRI-Machine-Learning-Operations-22-23 --repo mlops-01-hands-on --name "mlops_models-0.1.0-py3-none-any.whl" --file dist/mlops_models-0.1.0-py3-none-any.whl
How to contribute
To contribute, run the following commands:
git clone
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
mlops-models-1.0.1.tar.gz
(30.5 kB
view hashes)
Built Distribution
Close
Hashes for mlops_models-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621029b7f62a911dc8200f9229fe8c505fb15d2cf14e31aae437465c2704ca84 |
|
MD5 | 7e66a01d9c3e568aebcae7e5f377d015 |
|
BLAKE2b-256 | 288c10085b09a7f5d34dd10cabe1c066eb82c4a25a2b3e41d33bea7cb7af1f46 |