# African GDP Growth Prediction - ML Summative Assignment
**Author:** Kayonga Elvis
**Date:** November 2025
**Institution:** Machine Learning Summative Assignment
---
## π― Mission Statement
This project predicts GDP growth rates for 54 African countries using machine learning to support economic policy decisions and investment strategies. By analyzing key economic indicators including inflation, unemployment, foreign direct investment, trade balance, government debt, and internet penetration, we provide data-driven insights for African economic development.
## π Problem Statement
African economies face unique challenges and opportunities. This model helps predict GDP growth trajectories based on multiple economic factors, enabling policymakers, investors, and researchers to make informed decisions about resource allocation and strategic planning across the African continent.
---
## ποΈ Project Structure
```
summative/
βββ linear_regression/
β βββ multivariate.ipynb # ML model development notebook
βββ API/
β βββ prediction.py # FastAPI application
β βββ requirements.txt # Python dependencies
β βββ best_model.pkl # Trained model (generated)
β βββ scaler.pkl # Feature scaler (generated)
β βββ label_encoder.pkl # Country encoder (generated)
β βββ feature_names.pkl # Feature list (generated)
β βββ model_metadata.pkl # Model info (generated)
βββ FlutterApp/
βββ lib/
β βββ main.dart # Flutter app main code
βββ pubspec.yaml # Flutter dependencies
βββ README.md # Flutter setup guide
```
---
## π API Endpoint
### π Live Deployment
**Base URL:**
african-gdp-api-qlax.onrendβ¦
**Swagger UI Documentation:**
african-gdp-api-qlax.onrendβ¦
**Status:** β
Live and operational
### Example API Endpoints
- `GET /` - API information
- `GET /countries` - List of supported countries
- ` β¦