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-mm 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-mm 0.1.0
File Size Uploaded Provenance Actions
batch_prediction_pipeline_mm-0.1.0.tar.gz 9.4 kB Without provenance Details for batch_prediction_pipeline_mm-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 20.3 kB

Release files / batch_prediction_pipeline_mm-0.1.0.tar.gz

Download URL batch_prediction_pipeline_mm-0.1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
55335569c6807459dff755383bfdf33039b5a4c3bd24fc7b33bc93a7fddd1489
BLAKE2b-256 checksum
How to use checksums
802a317b50afa902d052364d106c57f248722b4189d12f2d10ef8bd9f5ba3be4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.2 Linux/5.15.133.1-microsoft-standard-WSL2

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

Download URL batch_prediction_pipeline_mm-0.1.0-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
418d2642ffd303616bd1e33fbfe0aee1b0a8c992d28477538fdd6577522e8c99
BLAKE2b-256 checksum
How to use checksums
0aa4c9cfb5bab2791cf059e770206293b4cb02cc825e775d04e1dacc52dda56c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.9.2 Linux/5.15.133.1-microsoft-standard-WSL2

Security for batch-prediction-pipeline-mm 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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