Swiggy Rating prediction
Sept 2023 - Nov 2023
Predicting Swiggy Ratings: A Data-Driven Journey
Imagine. You order your favorite biryani on Swiggy, eagerly anticipating its arrival. But will it be a 'Delightful' experience, or a 'Disappointing' disaster? Predicting delivery satisfaction is crucial for Swiggy, and that's where my project comes in.
The Challenge: Develop a machine learning model to forecast 'Rating Category' for Swiggy food orders, leveraging 17 diverse features like delivery time, price, and cuisine type.
My Approach:
Data Wrangling: Diving into the depths of the dataset, I tackled missing values, transformed categorical variables, and identified unique identifiers for removal. This cleansed data was my canvas for further exploration.
Base Models: Before diving deep, I established baselines with Logistic Regression, Decision Trees, Random Forests, Naive Bayes, and XGBoost. Decision Trees and Random Forests emerged as early contenders, with Random Forest shining for its balanced performance.
Class Imbalance: The data leaned towards positive reviews. To ensure fairness, I employed oversampling techniques, creating a more balanced playing field for my models.
Exploratory Data Analysis (EDA): I donned my detective hat, uncovering outliers and skewness within the data. Outliers received special attention, while skewness was corrected to ensure my models wouldn't be swayed by imbalanced distributions.
Model Refinement: With a cleansed and balanced dataset, I revisited my models. The results were impressive! Both Random Forest and XGBoost soared, showcasing high accuracy, precision, recall, and F1-scores for both rating categories.
Feature Selection: Time to declutter! Using Recursive Feature Elimination, I identified the most influential features, crafting a leaner and meaner model. While performance remained strong, this step provided valuable insights into feature importance.
The Verdict:
Random Forest and XGBoost emerged as the top performers, capable of accurately predicting Swiggy's 'Rating Category' with balanced precision and recall. This opens doors for exciting possibilities! Swiggy can leverage these insights to:
Beyond the code:
This project wasn't just about lines of algorithms. It was a journey of understanding data, uncovering hidden patterns, and ultimately, using insights to drive real-world impact. In a world fueled by online deliveries, predicting satisfaction has become a game-changer, and I'm thrilled to have contributed to this exciting frontier.