Batch Prediction Pipeline
Check out Lesson 3 on Medium to better understand how we built the batch prediction pipeline.
Also, check out Lesson 5 to learn how we implemented the monitoring layer to compute the model's real-time performance.
Install for Development
The batch prediction pipeline uses the training pipeline module as a dependency. Thus, as a first step, we must ensure that the training pipeline module is published to our private PyPi server.
NOTE: Make sure that your private PyPi server is running. Check the Usage section if it isn't.
Build & publish the training-pipeline to your private PyPi server:
cd training-pipeline
poetry build
poetry publish -r my-pypi
cd ..
Install the virtual environment for batch-prediction-pipeline:
cd batch-prediction-pipeline
poetry shell
poetry install
Check the Set Up Additional Tools and Usage sections to see how to set up the additional tools and credentials you need to run this project.
Usage for Development
To start batch prediction script, run:
python -m batch_prediction_pipeline.batch
To compute the monitoring metrics based, run the following:
python -m batch_prediction_pipeline.monitoring
NOTE: Be careful to complete the .env file and set the ML_PIPELINE_ROOT_DIR variable as explained in the Set Up the ML_PIPELINE_ROOT_DIR Variable section of the main README.
Metadata
Release files for batch-prediction-pipeline-self 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| batch_prediction_pipeline_self-0.1.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| batch_prediction_pipeline_self-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / batch_prediction_pipeline_self-0.1.0.tar.gz
| Download URL | batch_prediction_pipeline_self-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b02b7c41f296e09265d96b98b95e1a8366260ca5adcd9c0afffee42970d20f14
|
|
BLAKE2b-256 checksum How to use checksums |
dd6c37a694a14860a67807e14d5b5c8633a0812694145c47aa57f58d37f26d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.12 Windows/10
|
Release files / batch_prediction_pipeline_self-0.1.0-py3-none-any.whl
| Download URL | batch_prediction_pipeline_self-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3f866595d64411acccf00e64796904f242276ec35b8255e5bb92c2c19f270fe5
|
|
BLAKE2b-256 checksum How to use checksums |
1ff14f24979cac923159ca9c1cc57613f87f5c06eef7517a918f648846ba8f75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.9.12 Windows/10
|