Logo Lanfrica

ZayyadMusa/house-price-predictor

Domaine:

socioeconomic

Type de record:

model
Créateur:
Zay
Hôte:
Predicting house prices in Abuja and Port Harcourt using machine learning. Having lived in both cities, I built this regression model to explore how location, size, and neighborhood drive property value across Nigeria's capital and oil city. # Nigeria House Price Predictor I built this as part of my MSc AI portfolio. The idea came from actually living between Abuja and Port Harcourt and having no real way to estimate what a property is worth or whether it's a good investment. Most tools online are either too generic or don't cover Nigeria at all, so I built one that does. You enter the details of a property — city, type, bedrooms, bathrooms — and it gives you an estimated buy price based on real Nigerian listing data, plus a projected sell value for each of the next 10 years so you can see whether the investment makes sense. --- ## What it does - Predicts the current market price of a house in **Abuja** or **Port Harcourt** - Shows a **10-year sell projection** with expected profit and ROI - Plots a chart so you can see how the value grows year by year - Built on a dataset of real Nigerian property listings from PropertyPro.ng --- ## How it works The model is XGBoost trained on Nigerian house listing data. The features it uses are city, property type, number of bedrooms, bathrooms, toilets and parking spaces. For the 5-year projection I apply historical annual appreciation rates: - **Abuja** — ~13% per year (capital city, demand is high) - **Port Harcourt** — ~10% per year (oil city, steady growth) These rates are based on Nigerian real estate market trends from 2019–2024. The projection is clearly labelled as an estimate, not a guarantee. --- ## Getting the dataset The model trains on Nigerian property listing data. Download it from Kaggle: 1. Go to kaggle.com 2. Download the CSV file 3. Rename it to `nigeria_houses.csv` 4. Place it in `backend/data/` --- ## How to run it **Install dependencies:** ```bash cd backend pip install -r requirements.txt ``` **Train the model** (only needed once): ```bash python train.py ``` It will print the R² score and mean price error so you know how accurate it is. **Start the API:** ```bash python -m uvi …

Licenses