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_mm-0.1.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: batch_prediction_pipeline_mm-0.1.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.2 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for batch_prediction_pipeline_mm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55335569c6807459dff755383bfdf33039b5a4c3bd24fc7b33bc93a7fddd1489
MD5 4df8cedfb0e171b26d07294710d5a11c
BLAKE2b-256 802a317b50afa902d052364d106c57f248722b4189d12f2d10ef8bd9f5ba3be4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for batch_prediction_pipeline_mm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 418d2642ffd303616bd1e33fbfe0aee1b0a8c992d28477538fdd6577522e8c99
MD5 3e9e138dce60bb6dfecab9d71397dc64
BLAKE2b-256 0aa4c9cfb5bab2791cf059e770206293b4cb02cc825e775d04e1dacc52dda56c

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