This project is part of my AI/ML internship at DevelopersHubΒ Corporation. The goal of this project is to predict house prices using machine learning models based on historical housing data from King County, USA. The predictions are based on features like the number of bedrooms, square footage, location, and more.
kc_house_data.csv
price
, bedrooms
, bathrooms
, sqft_living
, floors
, zipcode
, etc.price
House Price Prediction/
β
βββ house_price_model.ipynb # Jupyter notebook for training and evaluation
βββ kc_house_data.csv # Dataset
βββ requirements.txt # Python dependencies
βββ README.md # Project overview
β
βββ results/
β βββ house_price_predictions.xlsx # Output file with actual vs predicted prices
β
βββ src/
βββ preprocessing.py # Functions for data loading & cleaning
βββ model.py # Model training and prediction logic
βββ visualization.py # Plots and visualizations
Metric | Linear Regression | XGBoost |
---|---|---|
MAE | ~121,000 | ~83,000 |
RMSE | ~153,000 | ~104,000 |
(Note: Exact values may vary depending on preprocessing.)
house_price_model.ipynb
notebook in Jupyter or VS Code.pip install -r requirements.txt
Aafia Azhar
GitHub: @aafia1
The predicted results are saved as:
results/house_price_predictions.xlsx