Skip to content

This project focuses on predicting house prices in King County, Washington (USA) using machine learning techniques. The dataset includes detailed information about homes sold in the region, such as number of bedrooms, bathrooms, square footage, location, and more.

Notifications You must be signed in to change notification settings

AnshManwani/King-County-House-Price-Prediction

Repository files navigation

🏠 House Price Prediction - Machine Learning Web App

This project predicts house prices in King County, USA using a trained Random Forest Regressor model and a Flask web app.


📊 Dataset

Dataset used: kc_house_data.csv

  • Contains 21,000+ housing records.
  • Includes features like bedrooms, bathrooms, sqft, location, etc.

##⚙️ Features

  • Cleaned & preprocessed dataset (outlier removal, encoding).
  • Trained RandomForestRegressor model with 86–87% accuracy.
  • Location-based dropdown selection with lat/long and zipcode_encoded mapping.
  • Fully interactive Flask-based web UI with dropdowns.
  • Predicts house price based on 15 input features.

🚀 Tech Stack

  • Python
  • Pandas, NumPy, Scikit-Learn, Seaborn, Matplotlib
  • Flask (Backend)
  • HTML, CSS (Frontend)

🛠️ How to Run Locally

  1. Clone this repo:
    git clone https://github.com/yourusername/house-price-predictor.git
    cd house-price-predictor
    

⚠️ Note: The trained model file house_price_model.pkl is not included in this repository due to file size limits. To test the app, either train the model yourself using train_model.py or contact the author.

About

This project focuses on predicting house prices in King County, Washington (USA) using machine learning techniques. The dataset includes detailed information about homes sold in the region, such as number of bedrooms, bathrooms, square footage, location, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published