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
Metadata
Release files for mlops-models 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlops-models-1.0.5.tar.gz | 31.5 kB | Without provenance | Details for mlops-models-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlops_models-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for mlops_models-1.0.5-py3-none-any.whl |
Total release size: 57.1 kB
Release files / mlops-models-1.0.5.tar.gz
| Download URL | mlops-models-1.0.5.tar.gz |
|---|---|
| Size | 31.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
814919fcfb248fb96351d3e2f84d1d3d5dcfd1a86254c10b4f15c7d48061c0bc
|
|
BLAKE2b-256 checksum How to use checksums |
9ef73bb08dec6f629fdaec5c365ca4418b512d7f2d0399232baa9b1f4542295a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / mlops_models-1.0.5-py3-none-any.whl
| Download URL | mlops_models-1.0.5-py3-none-any.whl |
|---|---|
| Size | 25.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1f77048de3078ecf42627ad85924020a61c269e51fad54144949b644612e4bd
|
|
BLAKE2b-256 checksum How to use checksums |
bc69384ae4c3ad13fa52ee020b12313da6f0d58f9eb9bf4ab4353ba7f1469a53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Security for mlops-models 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.