- It's an End to End Project covering all the required steps in a Data Science Project with Web Interface.
- Coded pipelines for every required stage of the lifecycle for this particular DS Project.
- Deployable and Production Ready project.
-
Coupon systems have been widely used to market products, and services and engage customers to use their products and services often. Coupons create a win-win situation for both companies and customers so, by offering a correct coupon to users, which can lead users to become frequent customers and it is enhancing a brand’s impact on its customers.
-
How to know which coupon to provide a customer can be a rather complex task, since each customer profile responds differently to each other, and frequently offering them bad coupons or deals might drag them away from your business. To overcome this problem, machine learning techniques can be used to build a better coupon recommendations system.
-
Predicting whether the customer will accept the coupon or not is a difficult problem, and we can not just recommend it to everyone because of the costs concerned so, in this problem, we will predict whether a customer will accept or reject the offered coupon based on the customer’s profile and history.
-
This prediction helps the company in offering a correct coupon so that more customers will use their services which leads to more business for the company.
- The goal of the prediction problem is to predict whether a customer will accept or reject the coupon for a specific venue based on demographic and contextual attributes.
- If the customers accept the coupon are labeled as Y=1 and if the customers reject the coupon are labeled as Y=0. This problem can be posed as a binary class classification problem.
- This is a sample dataset which is publicly available related to coupons.
- Entire dataset description and detailed information about attributes can be found from this
- Data Ingestion
- Data Validation
- Data Transformation
- Model Trainer
- Model Evaluation
- Python, Colab, Flask, Html, CSS, JavaScript
- Dagshub, Mlflow, Conda virtual environment
- VS Code, several Machine learning modules in Pythom
- Update config.yaml
- Update schema.yaml
- Update params.yaml
- Update the entity
- Update the configuration manager in src config
- Update the components
- Update the pipeline
- Update the main.py
- Update the app.py
Clone the repository
https://github.com/Revanth-Reddy-Pingala/AskmeOffers_Project
conda create -n aenv python=3.11 -y
conda activate aenv
pip install -r requirements.txt
# Finally run the following command
flask run
or
python app.py
Now,
open up you local host and port
MLFLOW_TRACKING_URI=https://dagshub.com/Revanth-Reddy-Pingala/AskmeOffers_Project.mlflow
MLFLOW_TRACKING_USERNAME=Revanth-Reddy-Pingala
MLFLOW_TRACKING_PASSWORD=your_password
python script.py
Run this to export as env variables:
export MLFLOW_TRACKING_URI=https://dagshub.com/Revanth-Reddy-Pingala/AskmeOffers_Project.mlflow
export MLFLOW_TRACKING_USERNAME=Revanth-Reddy-Pingala
export MLFLOW_TRACKING_PASSWORD=your_password
MLflow
- Its Production Grade
- Trace all of your expriements
- Logging & tagging your model
![1](https://private-user-images.githubusercontent.com/125516124/329781280-6c75489b-8754-4d60-8e45-53a725abf428.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxNjc4MzMsIm5iZiI6MTcyNjE2NzUzMywicGF0aCI6Ii8xMjU1MTYxMjQvMzI5NzgxMjgwLTZjNzU0ODliLTg3NTQtNGQ2MC04ZTQ1LTUzYTcyNWFiZjQyOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTEyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxMlQxODU4NTNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yNjIxMmZjMDk0YzQ5MDI2NWU2ZGFkZmEwZmI5ZWIzNjY3YjI2MjM2ZjE5NGIzY2JkMzQwM2YyYjUwMDU4N2NiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.M9kadfEJ_IFp51DmdC2IcjM_B9LhEEgvfRzntV8FDCI)
![2](https://private-user-images.githubusercontent.com/125516124/329781310-fb814144-8736-4f8a-a182-dea30b3a6f6e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsIm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