Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

SimbaMunatsi/zimbabwe-retail-forecast

Domain:

socioeconomic

Record type:

softwareproject
Creator:
Sim
Host:
# Zimbabwe Retail Demand Forecasting Platform An end-to-end ML forecasting platform that predicts daily retail sales and explains the forecast using SHAP. Built with XGBoost, FastAPI, Streamlit, Docker, MLflow, and GitHub Actions. ## Business Problem Retailers often rely on spreadsheets and intuition to decide how much stock to order next week. Poor forecasts lead to: * Stockouts * Excess inventory * Lost sales * Higher holding costs This project demonstrates a production-style ML system that predicts store demand and provides explainable drivers behind each forecast. ## Key Results * **Baseline MAE:** 2,422.84 * **XGBoost MAE:** 653.86 * **Forecast improvement:** 73% reduction in error ## Architecture Streamlit UI → FastAPI → XGBoost + SHAP → JSON Response ```text ┌─────────────────────┐ │ Streamlit UI │ │ (Port 8501) │ └──────────┬──────────┘ │ HTTP POST ▼ ┌─────────────────────┐ │ FastAPI Backend │ │ /predict │ │ /health │ └──────────┬──────────┘ │ ┌─────┴─────┐ ▼ ▼ ┌─────────┐ ┌─────────┐ │XGBoost │ │ SHAP │ │Forecast │ │Explain │ └────┬────┘ └────┬────┘ └─────┬─────┘ ▼ ┌─────────────────────┐ │ JSON Response │ │ Forecast + Drivers │ └─────────────────────┘ ``` ## Demo ### Dashboard ### API Documentation ## Tech Stack | Layer | Technology | |---|---| | **Frontend** | Streamlit | | **Backend API** | FastAPI | | **ML Model** | XGBoost | | **Explainability** | SHAP | | **Experiment Tracking** | MLflow | | **Containerization** | Docker + Docker Compose | | **CI/CD** | GitHub Actions | | **Testing** | Pytest | ## Features * Interactive sales forecasting dashboard * Real-time API predictions * SHAP feature attribution * MLflow experiment tracking * Dockerized microservice architecture * Automated CI pipeline ## Quick Start **1. Clone the repository** ```bash git clone github.com cd zimbabwe-retail-forecast ``` **2. Run with Docker** ` …

Visit

github.com

Similar

stilhere4huniid/zimbabwe-retail-tenant-churn-predictionTechnology Acceptance Model for Zimbabwe: The Case of the Retail Industry in ZimbabweBardiGit/Predictive-machine-learning-model-using-Python-to-forecast-retail-consumer-demand-on-AnkaraA Model for Financial Inclusion: The case of the Retail Industry in ZimbabweSeasonal crop yield forecast verification metrics for Ghana, Kenya, and ZimbabweThe Role of Brand Recognition in Enhancing Customer Retention in the Pharmaceutical Retail Sector of Zimbabwe: A Case Study of Pharmacies in Chinhoyi, Mash West, Zimbabwe

stilhere4huniid/zimbabwe-retail-tenant-churn-prediction

ML system predicting retail tenant churn in Zimbabwe using 2022-2025 time-series data # 🇿🇼 Zimbabwe

Technology Acceptance Model for Zimbabwe: The Case of the Retail Industry in Zimbabwe

The retail industry in Zimbabwe has embraced the use of a variety of technologies in order to surviv

BardiGit/Predictive-machine-learning-model-using-Python-to-forecast-retail-consumer-demand-on-Ankara

# 👗 Nigerian Ankara Ready-to-Wear Demand Forecaster An end-to-end predictive machine learning model

A Model for Financial Inclusion: The case of the Retail Industry in Zimbabwe

Inclusive financial systems allow broad access to financial services without price barriers to their

Seasonal crop yield forecast verification metrics for Ghana, Kenya, and Zimbabwe

This dataset contains forecast verification metrics and reporting outputs for the Seasonal Crop Yiel

The Role of Brand Recognition in Enhancing Customer Retention in the Pharmaceutical Retail Sector of Zimbabwe: A Case Study of Pharmacies in Chinhoyi, Mash West, Zimbabwe

This study was based on the role of brand recognition in enhancing customer retention in the pharmac