Skip to content

SalesSense is an intuitive web app powered by cutting-edge machine learning models that provides real-time sales forecasts, helping businesses optimize inventory, boost profits, and make data-driven decisions effortlessly. Explore historical sales trends, seasonality, and predictive insights with ease. Take control of your sales future today!

Notifications You must be signed in to change notification settings

snyamson/P4-SalesSense-Interactive-Sales-Forecasting-Web-Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SalesSense - Real-time Interactive Sales Forecasting Web Application 📈📊

SalesSense is an intuitive web app powered by cutting-edge machine learning models that provides real-time sales forecasts, helping businesses optimize inventory, boost profits, and make data-driven decisions effortlessly 💼💰🤖

Table of Contents 📚

Introduction 🚀

The SalesSense app leverages machine learning models to provide real-time sales forecasts for businesses. It offers an intuitive and user-friendly interface to input relevant data and instantly receive sales predictions.

Features ✨

  • Real-time sales predictions.
  • Interactive user interface.
  • Visualize sales trends over time.
  • User-friendly design.
  • Support for different product families.
  • Data preprocessing and model training.

Demo 🚀

Getting Started 🏁

Follow these instructions to get the app up and running on your local machine.

Installation 🛠️

  1. Clone the repository:

    git clone https://github.com/snyamson/P4-SalesSense-Interactive-Sales-Forecasting-Web-Application.git
    cd P4-SalesSense-Interactive-Sales-Forecasting-Web-Application
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required dependencies:

    pip install -r requirements.txt

Running the App 🏃

Run the Streamlit app using the following command:

streamlit run src/app/app.py

Access the app through your web browser at http://localhost:8501.

App Structure 🧱

  • src: The main application directory.
  • app/: Directory containing app components, utility functions and the main application script app.py.
  • model/: Directory for storing pre-trained model and preprocessing tool.
  • notebook/: Directory containing the data and the jupyter notebook for model training.

Usage 📊

Making Predictions 📈

  1. Fill in the required fields such as the family of the store, store type, date, items on promotion, previous sales, and rolling mean.
  2. Click the "Submit" button to receive a real-time sales prediction.

Viewing Sales Trends 📉

  1. Click the "View Trends" tab on the app.
  2. Explore the historical sales trends using the line chart.
  3. Click the "Make Prediction" button to go back to the prediction form.

Technologies Used 💻🔬

  • Streamlit: Python web application framework.
  • Pandas: Data manipulation and analysis library.
  • Scikit-Learn: Machine learning library.
  • XGBoost: Gradient boosting library.
  • Joblib: Serialization and deserialization of models.
  • HTML/CSS: Styling and layout.

Data Preprocessing 🧹🧮

The app preprocesses input data to ensure compatibility with the machine learning model. It scales and transforms the data as needed for accurate predictions using the preprocessor exported from the notebook.

Model Training 🤖📓

The app employs a pre-trained XGBoost machine learning model (Details about training can be found in the notebook). The model was trained on historical sales data to provide accurate forecasts.

Contributing 🤝🙌

Contributions to the SalesSense app project are welcome. Please follow these guidelines for contributing:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix: git checkout -b feature-name
  3. Make your changes and commit them with clear, concise commit messages.
  4. Push your changes to your fork.
  5. Create a pull request against the main repository.

License📜

This project is licensed under the MIT License.

Author✍️

Solomon Nyamson

Connect with me on LinkedIn: LinkedIn Profile


Feel free to star ⭐ this repository if you find it helpful!

About

SalesSense is an intuitive web app powered by cutting-edge machine learning models that provides real-time sales forecasts, helping businesses optimize inventory, boost profits, and make data-driven decisions effortlessly. Explore historical sales trends, seasonality, and predictive insights with ease. Take control of your sales future today!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published