Logo Lanfrica

JustineMHN/africa-economic-ml

Domain:

socioeconomic

Record type:

project
Creator:
Jus
Host:
# 🌍 AfricaInvest Intelligence > Plateforme MLOps de prĂ©diction de la croissance Ă©conomique africaine. > Classifie le potentiel de croissance (**low / medium / high**) Ă  partir d'indicateurs macro-Ă©conomiques, exposĂ© via une **API FastAPI** et un **dashboard Streamlit**. --- ## 📋 Table des matiĂšres - Architecture - Stack technique - Installation - DĂ©marrage rapide - API Reference - MĂ©triques du modĂšle - DĂ©ploiement --- ## 📁 Architecture ``` africa-economic-ml/ │ ├── app/ # Logique applicative (API + modĂšle) │ ├── __init__.py │ ├── api.py # FastAPI — routes & lifespan │ ├── model.py # Singleton de chargement/infĂ©rence │ └── schemas.py # Pydantic — validation entrĂ©es/sorties │ ├── ui/ │ └── streamlit_app.py # Dashboard interactif │ ├── artifacts/ │ ├── model.joblib # Pipeline scikit-learn sĂ©rialisĂ© │ └── metrics.json # MĂ©triques d'entraĂźnement │ ├── scripts/ │ └── train_model.py # EntraĂźnement + sauvegarde de l'artifact │ ├── data/ │ ├── africa_economic_data.csv # Dataset (2 000 observations, 50 pays) │ └── generate_data.py # GĂ©nĂ©rateur de donnĂ©es synthĂ©tiques │ ├── notebooks/ │ └── eda_analysis.ipynb # Analyse exploratoire complĂšte │ ├── requirements.txt ├── .gitignore └── README.md ``` --- ## đŸ› ïž Stack technique | Couche | Technologies | |--------|-------------| | **API** | FastAPI, Uvicorn, Pydantic v2 | | **ML** | scikit-learn (RandomForest, GradientBoosting, LogReg), joblib | | **UI** | Streamlit | | **Data** | pandas, numpy | | **Viz** | matplotlib, seaborn, plotly | --- ## ⚙ Installation ```bash # 1. Cloner le dĂ©pĂŽt git clone github.com /africa-economic-ml.git cd africa-economic-ml # 2. CrĂ©er un environnement virtuel python -m venv .venv source .venv/bin/activate # Linux/macOS # .venv\Scripts\Activate.ps1 # Windows PowerShell # 3. Installer les dĂ©pendances pip install -r requ