Skip to content

Vidit3859/FUTURE_ML_01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“Š AI-Powered Sales Forecasting Dashboard

โณ Time-Series Forecasting โ€ข ๐Ÿ“‰ SARIMA Model โ€ข ๐ŸŒ Streamlit App โ€ข ๐Ÿ›’ Walmart Sales Data

This project predicts future weekly retail sales using real historical data and provides an interactive dashboard built with Streamlit. It includes full data preprocessing, sales trend analysis, time-series modeling (SARIMA), forecasting, and deployment.

๐Ÿ”— Dataset: Walmart Weekly Sales Dataset (Kaggle)


๐Ÿš€ Project Features

โœ… 1. Data Processing & Cleaning

โ€ข Convert dates to datetime format

โ€ข Sort weekly data chronologically

โ€ข Handle missing values

โ€ข Aggregate sales by date

โœ… 2. Data Visualization

โ€ข Line plots of weekly sales

โ€ข Rolling 12-week average trend

โ€ข Seasonal decomposition (trend, seasonality, residuals)

โœ… 3. Time-Series Forecasting (Modeling)

โ€ข SARIMA (1,1,1)(1,1,1,52)

โ€ข 12-week future forecast

โ€ข Model diagnostics & evaluation

โ€ข MSE, RMSE, MAE metrics

โœ… 4. Dashboard (Streamlit)

โ€ข Interactive sections include:

๐Ÿ“… Weekly Sales Table (with rolling mean)

๐Ÿ“ˆ Actual vs Forecasted Sales Chart

๐Ÿ”ฎ Future Predictions Table

โ€ข Responsive & clean layout


๐Ÿ—‚๏ธ Project Structure

sales-forecasting-dashboard/
โ”‚
โ”œโ”€โ”€ app.py                # Streamlit dashboard
โ”œโ”€โ”€ weekly_sales.csv      # Cleaned dataset (exported from Colab)
โ”œโ”€โ”€ forecast.csv          # SARIMA model forecast (exported from Colab)
โ”œโ”€โ”€ requirements.txt      # Required dependencies
โ””โ”€โ”€ README.md             # Project documentation

๐Ÿง  Modeling Approach

๐ŸŸฆ SARIMA Model

โ€ข I used a Seasonal ARIMA (SARIMAX) model with weekly seasonality (52 weeks). Model configuration:

order = (1, 1, 1)
seasonal_order = (1, 1, 1, 52)

๐Ÿ“ˆ Forecast Output

โ€ข The model predicts 12 weeks ahead, generating a clean forecast used in the Streamlit dashboard.


๐Ÿ› ๏ธ Tech Stack

Category Tools:

โ€ข Programming Python

โ€ข Data Handling Pandas, NumPy

โ€ข Visualization Matplotlib

โ€ข Time-Series Modeling Statsmodels (SARIMAX)

โ€ข Cloud Notebook Google Colab

โ€ข Dashboard Streamlit

โ€ข Deployment Streamlit Cloud

โ€ข Version Control GitHub


โ–ถ๏ธ How to Run the Project Locally

1๏ธโƒฃ Clone the repository

git clone https://github.com/your-username/sales-forecasting-dashboard.git
cd sales-forecasting-dashboard

2๏ธโƒฃ Install dependencies

pip install -r requirements.txt

3๏ธโƒฃ Run Streamlit

streamlit run app.py

๐ŸŒ Deployment (Streamlit Cloud)

The project is deployed on Streamlit Cloud.

Key steps:

  1. Upload project folder to GitHub

  2. Go to https://streamlit.io/cloud

  3. Deploy โ†’ Select GitHub repo

  4. Choose app.py as the entry point

  5. Add environment file (requirements.txt)

  6. Deploy & get a public URL


๐Ÿ“ธ Dashboard Preview

Dashboard Weekly Sales Weekly Sales Chart Rolling Average Rolling Average Chart Sarima Forecast Sarima Forecast Chart Forecasted Values


๐Ÿ“‰ Results

โ€ข The SARIMA model successfully forecasts 12 weeks of sales

โ€ข Rolling averages reveal seasonal patterns

โ€ข Dashboard provides intuitive visual insights

โ€ข RMSE and MAE validate model performance


โญ Future Improvements

โ€ข Add Facebook Prophet / NeuralProphet models

โ€ข Add advanced EDA with store-wise or department-wise charts

โ€ข Add interactive filters in Streamlit

โ€ข Add anomaly detection on unusual sales spikes


๐Ÿค Contributing

โ€ข Pull requests, suggestions, and forks are welcome!

โ€ข Feel free to open an issue if you'd like to improve the dashboard.


๐Ÿ“ฌ Contact

Vidit Kumar

๐Ÿ“ง Email: vidit.kumar624@gmail.com

๐ŸŒ LinkedIn: linkedin.com/in/viditkumar-in


Releases

No releases published

Packages

 
 
 

Contributors

Languages