Skip to main content

A batch prediction pipeline for energy consumption forecasting

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for batch_prediction_pipeline_amar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3169525d09ead57175223bb3a3f427d406ea875c64e093260a350e25c414fe8a
MD5 2c16e26cbf5b7067a13e4ac29c6bdfbe
BLAKE2b-256 a5089fed40593a0e8820a9eb153420afdc5db50e8e720d3b2b739b19d3eb85c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for batch_prediction_pipeline_amar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c2f107a042d9cb63b81cbcc2b6f7346469ef9bd336dadbd926f7b5f9385deed7
MD5 1990a9e1c39b150bd196b0c848aedd60
BLAKE2b-256 eca57afe4cc18cc7610f67a6b004130a025355270bb991228fafb73662f62b91

See more details on using hashes here.

Supported by

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