-
Notifications
You must be signed in to change notification settings - Fork 0
07. Deployment and Technical Implementation
- Clone the Repository.
git clone "https://github.com/nltyh/DSA3101-Project.git"
- Ensure that the folder follows the same structure below:
.
├── customer_behaviour (Subgroup Q1)
│ ├── templates
│ │ └── index.html
│ ├── Customer Retention Analysis.ipynb
│ ├── CustomerPrep.ipynb
│ ├── Messages Table Schema.md
│ ├── QA1 EDA.ipynb
│ ├── QA1b.ipynb
│ ├── QA1bv2.ipynb
│ ├── Readme.md
│ ├── SyntheticAB.ipynb
│ ├── campaigns_clean.py
│ ├── clean_filtered_messages.py
│ ├── create_messages_database.py
│ ├── customer_segmentation_model.py
│ ├── initial_explore_customer_profile.py
│ ├── messages2.py
│ ├── messages_filter.py
│ ├── app.py
│ └── requirements.txt
├── inventory_management (Subgroup Q2)
│ ├── Demand Forecasting.ipynb
│ ├── Analyzing PED.ipynb
│ ├── Dynamic Pricing Model.ipynb
│ ├── Demand_Forecasting_Model.ipynb
│ ├── PricingModel.pkl
│ ├── Generating Products, Orders, Suppliers Table.ipynb
│ ├── Products EDA.ipynb
│ └── Supply_Chain.ipynb
├── Customer_Review_Analysis (Bonus Questions)
│ ├── NLP_Customer_reviews.ipynb
│ ├── Intelligent_Customer_Review_Analysis.py
│ └── Customer_Reviews.py
├── Demand Forecasting and Inventory Algorithm
├── Dockerfile
├── README.md
└── docker-compose.yml
-
Install Docker and ensure that Docker is running.
-
Run the following command in the root directory:
docker-compose up --build
- Go to
http://localhost:8080and you should see our web app with our models and insights.
-
First section contains the results from our Customer Segmentation Model, which uses a Human Knowledge-Based Model to segment customers based on their actions and spending habits.
-
Second section contains the results from our Demand Forecasting Model.
-
The last section displays our results from using Natural Language Processing to analyse customer reviews, as well as using a Large Language Model to extract key insights regarding customer satisfaction, product features and quality.
-
Ensure that your version of python is at least 3.9 or above.
-
Ensure that port 8080 is not being used. If it is, either kill any existing servers via terminal, or change
8080indocker-compose.yamlfile to any existing empty port. -
If you get this error message:
failed to solve: python:3.9-slim: failed to resolve source metadata for docker.io/library/python:3.9-slim: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out:, rundocker pull python:3.9-slimon your terminal, then rundocker-compose up --buildagain.