Name | batch-prediction-pipeline-self JSON |
Version |
0.1.0
JSON |
| download |
home_page | |
Summary | |
upload_time | 2023-09-20 16:53:53 |
maintainer | |
docs_url | None |
author | Nikhil |
requires_python | >=3.9,<3.10 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Batch Prediction Pipeline
Check out [Lesson 3](https://towardsdatascience.com/unlock-the-secret-to-efficient-batch-prediction-pipelines-using-python-a-feature-store-and-gcs-17a1462ca489) on Medium to better understand how we built the batch prediction pipeline.
Also, check out [Lesson 5](https://towardsdatascience.com/ensuring-trustworthy-ml-systems-with-data-validation-and-real-time-monitoring-89ab079f4360) 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](https://github.com/iusztinpaul/energy-forecasting#the-pipeline) if it isn't.
Build & publish the `training-pipeline` to your private PyPi server:
```shell
cd training-pipeline
poetry build
poetry publish -r my-pypi
cd ..
```
Install the virtual environment for `batch-prediction-pipeline`:
```shell
cd batch-prediction-pipeline
poetry shell
poetry install
```
Check the [Set Up Additional Tools](https://github.com/iusztinpaul/energy-forecasting#-set-up-additional-tools-) and [Usage](https://github.com/iusztinpaul/energy-forecasting#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:
```shell
python -m batch_prediction_pipeline.batch
```
To compute the monitoring metrics based, run the following:
```shell
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](https://github.com/iusztinpaul/energy-forecasting#set-up-the-ml_pipeline_root_dir-variable) section of the main README.
Raw data
{
"_id": null,
"home_page": "",
"name": "batch-prediction-pipeline-self",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9,<3.10",
"maintainer_email": "",
"keywords": "",
"author": "Nikhil",
"author_email": "inikhilj@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/dd/6c/37a694a14860a67807e14d5b5c8633a0812694145c47aa57f58d37f26d3c/batch_prediction_pipeline_self-0.1.0.tar.gz",
"platform": null,
"description": "# Batch Prediction Pipeline\n\nCheck out [Lesson 3](https://towardsdatascience.com/unlock-the-secret-to-efficient-batch-prediction-pipelines-using-python-a-feature-store-and-gcs-17a1462ca489) on Medium to better understand how we built the batch prediction pipeline. \n\nAlso, check out [Lesson 5](https://towardsdatascience.com/ensuring-trustworthy-ml-systems-with-data-validation-and-real-time-monitoring-89ab079f4360) to learn how we implemented the monitoring layer to compute the model's real-time performance.\n\n## Install for Development\n\nThe 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.\n\n**NOTE:** Make sure that your private PyPi server is running. Check the [Usage section](https://github.com/iusztinpaul/energy-forecasting#the-pipeline) if it isn't.\n\nBuild & publish the `training-pipeline` to your private PyPi server:\n```shell\ncd training-pipeline\npoetry build\npoetry publish -r my-pypi\ncd ..\n```\n\nInstall the virtual environment for `batch-prediction-pipeline`:\n```shell\ncd batch-prediction-pipeline\npoetry shell\npoetry install\n```\n\nCheck the [Set Up Additional Tools](https://github.com/iusztinpaul/energy-forecasting#-set-up-additional-tools-) and [Usage](https://github.com/iusztinpaul/energy-forecasting#usage) sections to see **how to set up** the **additional tools** and **credentials** you need to run this project.\n\n## Usage for Development\n\nTo start batch prediction script, run:\n```shell\npython -m batch_prediction_pipeline.batch\n```\n\nTo compute the monitoring metrics based, run the following:\n```shell\npython -m batch_prediction_pipeline.monitoring\n```\n\n**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](https://github.com/iusztinpaul/energy-forecasting#set-up-the-ml_pipeline_root_dir-variable) section of the main README.\n",
"bugtrack_url": null,
"license": "",
"summary": "",
"version": "0.1.0",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1ff14f24979cac923159ca9c1cc57613f87f5c06eef7517a918f648846ba8f75",
"md5": "1fd7ae739cbf8a4ed6e0185884e2a0ee",
"sha256": "3f866595d64411acccf00e64796904f242276ec35b8255e5bb92c2c19f270fe5"
},
"downloads": -1,
"filename": "batch_prediction_pipeline_self-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1fd7ae739cbf8a4ed6e0185884e2a0ee",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9,<3.10",
"size": 9044,
"upload_time": "2023-09-20T16:53:52",
"upload_time_iso_8601": "2023-09-20T16:53:52.119922Z",
"url": "https://files.pythonhosted.org/packages/1f/f1/4f24979cac923159ca9c1cc57613f87f5c06eef7517a918f648846ba8f75/batch_prediction_pipeline_self-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dd6c37a694a14860a67807e14d5b5c8633a0812694145c47aa57f58d37f26d3c",
"md5": "9172d4aaf22c68d21a408b72b1273995",
"sha256": "b02b7c41f296e09265d96b98b95e1a8366260ca5adcd9c0afffee42970d20f14"
},
"downloads": -1,
"filename": "batch_prediction_pipeline_self-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "9172d4aaf22c68d21a408b72b1273995",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9,<3.10",
"size": 6769,
"upload_time": "2023-09-20T16:53:53",
"upload_time_iso_8601": "2023-09-20T16:53:53.907822Z",
"url": "https://files.pythonhosted.org/packages/dd/6c/37a694a14860a67807e14d5b5c8633a0812694145c47aa57f58d37f26d3c/batch_prediction_pipeline_self-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-20 16:53:53",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "batch-prediction-pipeline-self"
}