Logo Lanfrica

khushimaurya15/infrarisk-lab

Domain:

socioeconomic

Record type:

software
Creator:
khu
Host:
InfraRisk Lab โ€” Infrastructure Project Finance Risk Platform for Africa & Middle East. Features SC-PD credit model, stress testing, Monte Carlo simulation, debt structuring, and interactive dashboard. Built with Python, Streamlit, and ML models. # ๐Ÿ—๏ธ InfraRisk Lab **Infrastructure Project Finance Risk Platform โ€” Africa & Middle East** > A dual-domain AI system combining supply chain analytics with infrastructure project finance, modelling credit risk, debt structuring, and stress testing for DFI-backed projects. --- ## ๐Ÿ“‹ Overview InfraRisk Lab is a comprehensive platform for **infrastructure project finance risk analysis**, covering 8 flagship projects across Nigeria, Kenya, Morocco, Ethiopia, Saudi Arabia, Ghana, Egypt, and the UAE. ### Key Capabilities | Module | Description | |--------|-------------| | ๐Ÿ“Š **Portfolio Dashboard** | Live deal registry with sector & geographic concentration | | ๐Ÿงฎ **SC-PD Credit Model** | Supply-Chain Adjusted Probability of Default | | ๐Ÿ’ฐ **Debt Structuring** | Senior / Mezzanine / Equity tranche optimizer | | โšก **Stress Testing** | 7 deterministic scenarios ร— all projects | | ๐ŸŽฒ **Monte Carlo** | P10/P50/P90 DSCR distribution with breach probability | | ๐Ÿค– **ML Models** | Logistic Regression + XGBoost credit classifiers | --- ## ๐Ÿš€ Quick Start ### Prerequisites ```bash pip install -r requirements.txt ``` ### Run the Interactive Dashboard ```bash streamlit run streamlit_app/app.py ``` ### Generate Data ```bash cd data python generate_data.py ``` ### Run Credit Model ```bash cd models python credit_model.py ``` ### Open Notebooks ```bash jupyter notebook notebooks/ ``` --- ## ๐Ÿ“ Project Structure ``` infrarisk-lab/ โ”œโ”€โ”€ README.md โ”œโ”€โ”€ requirements.txt โ”‚ โ”œโ”€โ”€ data/ โ”‚ โ”œโ”€โ”€ generate_data.py # Synthetic data generator โ”‚ โ””โ”€โ”€ output/ โ”‚ โ”œโ”€โ”€ portfolio.csv # 8-project portfolio โ”‚ โ”œโ”€โ”€ cashflows.csv # Annual cash flow projections โ”‚ โ”œโ”€โ”€ risk_register.csv # Project risk registers โ”‚ โ””โ”€โ”€ monte_carlo.csv # Monte Carlo simulation results โ”‚ โ”œโ”€โ”€ models/ โ”‚ โ””โ”€โ”€ credit_model.py # SC-PD model + ML classifiers โ”‚ โ”œโ”€โ”€ notebooks/ โ”‚ โ”œโ”€โ”€ 01_portfolio_analysis.ipynb # Portfolio EDA & visualization โ”‚ โ”œโ”€โ”€ 02_credi โ€ฆ