Skip to content

Vishal1180/Store_Sales_Prediction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Title : STORE SALES PREDICTION

Technologies : Machine Learning Technology

Domain : Sales And Marketing

Problem Statement:

-> Nowadays, shopping malls and Big Marts keep track of individual items sales data in order to forecast future client demand and adjust inventory management. In a data warehouse, these data stores hold a significant amount of consumer information and particular item details. By mining the data store from the data warehouse, more anomalies and patterns can be discovered.

Approach

-> The classical machine learning tasks like Data Exploration, Data Cleaning, Feature Engineering, Model Building and Model Testing. Try out different machine learning algorithms that's best fit for the above case.

Dataset

-> We have train(8523) and test(5681) data set, train data set has both input and output variables.

The dataset is taken from kaggle.

Link :- Click Here

We need to predict the sales for test data set on data as follow.

Features:

Item_weight : Weight of product

Item_Fat_Content : Whether the product is low fat or not

Item_Visibility : The % of total display area of all products in a store allocated to a particular product.

Item_Type : The category to which the product belongs

Item_MRP : Maximum Retail Price (list price) of the product

Outlet_Identifier : Unique Store ID

Outlet_Establishment_Year : The year in which store was established

Outlet_Size : The size of the store in terms of ground area covered

Outlet_Location_Type : The type of city in which the store is located

Outlet_Type : Whether the outlet is just a grocery store or some sort of supermarket

Target:

Item_Outlet_Sales : Sales of the product in the particular store. This is the outcome variable to be predicted.

Tools Used:

1. Python

2. Numpy, Pandas

3. Matplotlib, Seaborn, Plotly

4. Sklearn

5. Logging

7. Html, CSS

8. Flask

9. Cassandra Database

10. Heroku

Platforms Used:

Jupyter Notebook, Spyder, Github, Heroku

Operations Performes:

1. Data Collection:

-> Data is taken from kaggle which is a Store Sales Dataset.

2. Data Cleaning:

-> Every dataset consists of some missing values and outliers. The categorical missing values are filled with most frequent value i.e. mode while the numeric values are filled with mean. Also the outliers are treated with the mean value correspoiding to their item type.

3. Data Visualization:

-> Visualizations are performed using libraries like matplotlib, seaborn and plotly by plotting histogram, countplots, scatter plot, etc. Also simple visualizations are performed on Power Bi Dashboard.

Link :- Click Here

4. Feature Engineering:

-> We use one-hot encoding to convert categorical features to numeric data.

5. Model Training:

-> Comparing various regression models by training them on the modified dataset.

6. Hyperparameter Tuning:

-> To gain more accuracy on the data we perform hyperparameter tuning. This process take much time but can give us better results.

7. Model Evaluation and Selection:

-> We choose our model based on their time taken and R2 value.

8. Model Deployment:

-> Using flask library the model is deployed on heroku.

Database:

-> The data is stored in the cassandra database which is connected with our program using cassandra drive of python.

Logging:

-> Using python's logging library we are tracking our logs which are obtained during program execution. This helps to understand our code in more efficient way and resolve any error or bug.

Model Deployment Link:

-> Heroku Link: Click Here

Have a patience it will take a little bit to load.

User Interface:

Data In Database:

High Level Design (HLD)

Click Here

Low Level Design (LLD)

Click Here

Archirecture

Click Here

Wireframe Document

Click Here

Project Report

Click Here

Please feel free to inform me about any error or difficulty in my repository.

Thank You

About

Prediction of future sales using regression.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.9%
  • Other 0.1%