TEAM
Sycamore
Thanos Kritikos, Haoran Li
![clear.png](https://static.wixstatic.com/media/55f531_b9f3f13ce3aa4af78af2cc6d3563b81b~mv2.png/v1/fill/w_3,h_3,al_c,lg_1,q_85,enc_auto/clear.png)
This project aims to investigate Instacart data, classify app users based on consumer habits, and to forecast user purchases using machine learning algorithms. A kaggle.com competition provided the database. Data was cleaned and merged. Exploratory analysis examined consumer patterns. Bananas were the most popular purchase and produce sales are the highest. Monday, Tuesday, and 10 a.m. to 4 p.m. are the most lucrative profits. First, we'll group clients by shopping patterns. Clustering consumers with PCA and visualizing the top six components to find the most important pair. Using K-means, we can split clients into three groups. We spotted one generic user profile, one with a lot of baby formula, and one with lots of fresh produce purchased. XGBoost is used to train models that can be assessed using a few key features. We employ grid search cross-validation to discover the right modeling parameters. We ran XGBoost models on each cluster to generate a more focused, accurate model.
![](https://static.wixstatic.com/media/a994932411404ef3bb797ba005125f5d.png/v1/fill/w_45,h_45,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a994932411404ef3bb797ba005125f5d.png)
![](https://static.wixstatic.com/media/a994932411404ef3bb797ba005125f5d.png/v1/fill/w_45,h_45,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a994932411404ef3bb797ba005125f5d.png)
![](https://static.wixstatic.com/media/a994932411404ef3bb797ba005125f5d.png/v1/fill/w_45,h_45,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a994932411404ef3bb797ba005125f5d.png)