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.

jakeschege/kenya-rhomis-finance

Domain:

socioeconomic

Record type:

softwaremodel
Creator:
jak
Host:
A system meant to act as a credit scoring assistant # Kenya RHoMIS Finance Kenya smallholder credit scoring and farmer segmentation web app. ## Start **Terminal 1 — API (FastAPI)** ```bash cd api uvicorn main:app --reload --port 8000 ``` **Terminal 2 — Frontend (Next.js)** ```bash cd frontend npm run dev ``` App: localhost API docs: localhost ## Add Groq key (optional — for conversational intake + narratives) Edit `frontend/.env.local`: ``` GROQ_API_KEY=gsk_... NEXT_PUBLIC_GROQ_ENABLED=true ``` ## Pages | Route | Description | |---|---| | `/` | Overview — stats, segment cards, training countries | | `/score` | Manual multi-step scoring form | | `/intake` | Conversational intake (requires Groq key) | | `/segments` | Detailed Kenya segment profiles | | `/model` | Model comparison table — all results, feature list | ## API endpoints | Endpoint | Description | |---|---| | `POST /score` | Score a household from raw inputs | | `GET /metadata` | Full model metadata (features, segments, results) | | `GET /health` | Which models loaded successfully | ## Artifacts used Models loaded from `../artifacts_kenya/`: - **Primary model**: Random Forest (443 trees, 27 features) - **Comparison**: XGBoost, Logistic Regression, Decision Tree - **Segmentation**: K-Means k=4 (14 features, Kenya only) - **Excluded** (NumPy BitGenerator mismatch): GB, Stacking models

Visit

github.com

Similar

Grass2Cash RHoMIS baseline survey in KenyaGrass2Cash RHoMIS baseline survey in Ethiopiadanlumumba/Kenya-finance-bill-2025-RAGClown-nerd/Kenya-Public-Finance-Accountability-SystemGiathi-Daniel/kenya-finance-bill-2026-aiConsumer Protection Survey of Digital Finance Users: Kenya

Grass2Cash RHoMIS baseline survey in Kenya

This data was collected using the Rural Household Multi-Indicator Survey (RHoMIS) tool to a conduct

Grass2Cash RHoMIS baseline survey in Ethiopia

This data was collected using the Rural Household Multi-Indicator Survey (RHoMIS) tool to a conduct

danlumumba/Kenya-finance-bill-2025-RAG

This is a simple Retrieval-Augmented Generation (RAG) application that allows users to ask natural l

Clown-nerd/Kenya-Public-Finance-Accountability-System

# Kenya Public Finance Accountability System (KPFAS) A data ingestion, tracking, and auditing platf

Giathi-Daniel/kenya-finance-bill-2026-ai

The project contains code and resources for a modern AI-powered Finance Bill chatbot built with Next

Consumer Protection Survey of Digital Finance Users: Kenya

Researchers at Innovations for Poverty Action partnered with the Competition Authority of Kenya (CAK