# Nigeria House Price Prediction (ML + Clustering + Streamlit)
> π This is the advanced rebuild (v2) of my original ML project.
> π View the original version (v1) here: Nigerian House Price Prediction β v1
---
## π Project Overview
The Nigerian real estate market is growing rapidly, yet pricing remains inconsistent due to a lack of standardized valuation models.
This project aims to build a machine learningβbased predictive model that estimates house prices using historical property listing data from across Nigeria.
### π― Goal
To develop a data-driven pricing system that can help buyers, sellers, and developers make more informed decisions.
---
## π Key Features
- Predict house prices using Linear Regression and Random Forest
- Compare model outputs
- Segment properties using K-Means clustering
- Deploy interactive prediction interface using Streamlit
---
## Project Structure
```
nigeria-house-price-prediction-model/
β
βββ data/
β βββ raw/ # Original dataset
β βββ processed/ # Cleaned data
β
βββ notebooks/ # EDA and experimentation
β βββ 01_eda.ipynb
β βββ 02_model_training.ipynb
β βββ 03_clustering.ipynb
β
βββ src/ # Core ML pipeline
β βββ preprocess.py
β βββ train.py
β βββ predict.py
β βββ clustering.py
β
βββ app/ # Streamlit deployment
β βββ streamlit_app.py
β
βββ models/ # Saved trained models
β βββ linear_regression.pkl
β βββ random_forest.pkl
β βββ scaler.pkl
β βββ kmeans.pkl
β
βββ requirements.txt
βββ README.md
βββ .gitignore
```
---
## Models Used
### β
Regression (Price Prediction)
- **Linear Regression**
- **Random Forest Regressor**
### β
Unsupervised Learning (Segmentation)
- **K-Means Clustering**
- Groups properties into similar market segments
- Helps interpret pricing patterns beyond prediction
---
## Streamlit App Features
- Predict house price from user inputs
- Compare predictions from Linear Regression vs Ra β¦