Skip to content

SalesOracle is a powerful sales forecasting app designed to revolutionize the way businesses plan and strategize their sales efforts. With SalesOracle, you can harness the predictive power of cutting-edge technology to gain valuable insights into your sales performance and make data-driven decisions that drive growth and success.

License

Notifications You must be signed in to change notification settings

fantastic-rambo/P4-Streamlit-SalesOracle-Web-App-Forecasting-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

19 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

SalesOracle - Real-time Interactive Sales Forecasting Web Application ๐Ÿ“ˆ๐Ÿ“Š

SalesOracle 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 SalesOracle 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/fantastic-rambo/P4-Streamlit-SalesOracle-Web-App-Forecasting-ML.git
    cd P4-Streamlit-SalesOracle-Web-App-Forecasting-ML
  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โœ๏ธ

Isaac Agbogah (Rambo)

Connect with me on LinkedIn: LinkedIn Profile


Feel free to star โญ this repository if you find it helpful!

About

SalesOracle is a powerful sales forecasting app designed to revolutionize the way businesses plan and strategize their sales efforts. With SalesOracle, you can harness the predictive power of cutting-edge technology to gain valuable insights into your sales performance and make data-driven decisions that drive growth and success.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published