Skip to main content

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_amar 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for batch-prediction-pipeline_amar 0.1.0
File Size Uploaded
batch_prediction_pipeline_amar-0.1.0.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for batch-prediction-pipeline_amar 0.1.0
File Interpreter ABI Platform
batch_prediction_pipeline_amar-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / batch_prediction_pipeline_amar-0.1.0.tar.gz

Download URL batch_prediction_pipeline_amar-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3169525d09ead57175223bb3a3f427d406ea875c64e093260a350e25c414fe8a
BLAKE2b-256 checksum
How to use checksums
a5089fed40593a0e8820a9eb153420afdc5db50e8e720d3b2b739b19d3eb85c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.9.0 Windows/10

Release files / batch_prediction_pipeline_amar-0.1.0-py3-none-any.whl

Download URL batch_prediction_pipeline_amar-0.1.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c2f107a042d9cb63b81cbcc2b6f7346469ef9bd336dadbd926f7b5f9385deed7
BLAKE2b-256 checksum
How to use checksums
eca57afe4cc18cc7610f67a6b004130a025355270bb991228fafb73662f62b91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.9.0 Windows/10

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page