Skip to main content

No project description provided

Project description

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.

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

batch_prediction_pipeline_self-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file batch_prediction_pipeline_self-0.1.0.tar.gz.

File metadata

File hashes

Hashes for batch_prediction_pipeline_self-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b02b7c41f296e09265d96b98b95e1a8366260ca5adcd9c0afffee42970d20f14
MD5 9172d4aaf22c68d21a408b72b1273995
BLAKE2b-256 dd6c37a694a14860a67807e14d5b5c8633a0812694145c47aa57f58d37f26d3c

See more details on using hashes here.

File details

Details for the file batch_prediction_pipeline_self-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for batch_prediction_pipeline_self-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f866595d64411acccf00e64796904f242276ec35b8255e5bb92c2c19f270fe5
MD5 1fd7ae739cbf8a4ed6e0185884e2a0ee
BLAKE2b-256 1ff14f24979cac923159ca9c1cc57613f87f5c06eef7517a918f648846ba8f75

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page