Big Mart Sales Prediction using Machine Learning Web App

Big Mart is a retail chain that operates numerous stores across various locations. Predicting sales can help in optimizing inventory, improving sales strategies, and enhancing overall profitability. This project aims to build a predictive model using machine learning techniques to forecast the sales of products in different stores.

Objective

The main objective of this project is to predict the sales of products in different Big Mart outlets based on historical sales data and product attributes.

Data Collection and Preprocessing

Data Description

The dataset used in this project consists of various attributes of products and historical sales data. The key features include:

Datasets Link : - kaggle

  1. Item Identifier
  2. Item Weight
  3. Item Fat Content
  4. Item Visibility
  5. Item Type
  6. Item MRP
  7. Outlet Identifier
  8. Outlet Establishment Year
  9. Outlet Size
  10. Outlet Location Type
  11. Outlet Type
  12. Item Outlet Sales (Target Variable)

Model Building

Model Selection

Several machine learning algorithms were considered, including:

  • Linear Regression
  • Decision Tree Regressor
  • Random Forest Regressor
  • Gradient Boosting Regressor

Model Training

The dataset was split into training and testing sets. Hyperparameter tuning was performed using GridSearchCV to find the best parameters for each model.

Model Evaluation

Models were evaluated using metrics such as Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and R-squared (R²) score.

Installation Steps :-

  1. Install Python 3.8
  2. Install all dependencies cmd -python -m pip install --user -r requirements.txt
  3. Finally run cmd - python app.py

Download Link