Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hk-kumawat/house-price-predictor
🏡 An ML-based tool predicting U.S. house prices based on income, house age, room count, and area population.
https://github.com/hk-kumawat/house-price-predictor
house-price-prediction linear-regression real-estate streamlit
Last synced: 13 days ago
JSON representation
🏡 An ML-based tool predicting U.S. house prices based on income, house age, room count, and area population.
- Host: GitHub
- URL: https://github.com/hk-kumawat/house-price-predictor
- Owner: hk-kumawat
- Created: 2024-10-30T11:00:31.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-02T16:43:02.000Z (3 months ago)
- Last Synced: 2024-12-02T07:42:29.178Z (2 months ago)
- Topics: house-price-prediction, linear-regression, real-estate, streamlit
- Language: Jupyter Notebook
- Homepage: https://valuemyhouse.streamlit.app/
- Size: 1.58 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# House-Price-Predictor🏡
![148332938-4e66d4ca-2d16-474f-8482-340aef6a48d0](https://github.com/user-attachments/assets/7e3be8b8-4d6c-45de-9962-5ba5865e2ebc)
## Overview
This project predicts U.S. house prices based on various factors like average area income, house age, number of rooms, number of bedrooms, and area population. A Linear Regression model is trained and evaluated to determine price predictions with metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and R².
## Live Demo
Explore the House Price Predictor! 👉🏻 [![Experience It! 🌟](https://img.shields.io/badge/Experience%20It!-blue)](https://valuemyhouse.streamlit.app/)
_Below is a preview of the House Price Predictor in action. Input various housing factors to predict the price. Check out the user-friendly interface and data-driven predictions!_ 👇🏻
![]()
## Table of Contents
1. [Features](#features)
2. [Dataset](#dataset)
3. [Data Preprocessing](#data-preprocessing)
4. [Model Training](#model-training)
5. [Evaluation](#evaluation)
6. [Installation](#installation)
7. [Usage](#usage)
8. [Technologies Used](#technologies-used)
9. [Results](#results)
10. [Conclusion](#conclusion)
11. [Contact](#contact)
## Features🌟
- Loads and preprocesses a dataset of U.S. housing prices.
- Cleans data, removing non-numeric columns.
- Trains a Linear Regression model on the dataset for price prediction.
- Saves the trained model and preprocessed data for future use.
## Dataset📊
- **Source**: The dataset (`USA_Housing.csv`) includes attributes like:
- Avg. Area Income
- Avg. Area House Age
- Avg. Area Number of Rooms
- Avg. Area Number of Bedrooms
- Area Population
- Price (target variable)
## Data Preprocessing🛠
1. **Data Cleaning**: Dropped non-numeric columns to focus on numeric predictors.
2. **Feature Scaling**: Applied where necessary for model consistency.
## Model Training🧠
- The model used for this project is **Linear Regression**.
- **Train-Test Split**: 60% of the data is used for training, and 40% for testing.
## Evaluation📈
Each model is evaluated using:
- **MAE** (Mean Absolute Error)
- **MSE** (Mean Squared Error)
- **RMSE** (Root Mean Squared Error)
- **R²** (Coefficient of Determination)
## Installation🛠
1. **Clone the repository**:
```bash
https://github.com/hk-kumawat/House-Price-Predictor.git
```2. **Install dependencies**:
```bash
pip install -r requirements.txt
```
## Usage🚀
1. **Train the model**: Run the main script to train and evaluate the model.
2. **Model Inference**:
- Use `model.pkl` for predictions on test data.
- Preprocessed data is saved in `df.pkl`.
## Technologies Used💻
- Python
- Libraries: `pandas`, `numpy`, `matplotlib`, `seaborn`, `scikit-learn`
- Deployment: Streamlit for UI
## Results🏆
- The model achieved a reasonable prediction accuracy, with error metrics calculated as follows:
- **MAE**: The average absolute difference between the predicted and actual prices.
- **MSE** and **RMSE**: Measures of the model's accuracy, with RMSE providing insight into the spread of errors.
- **R²**: Indicates the proportion of variance explained by the model.
## Conclusion📚
The House Price Predictor project demonstrates the potential of Linear Regression in forecasting property prices based on key housing features. With a streamlined model and preprocessed dataset, this project emphasizes the importance of data cleaning and error metric analysis in real estate price predictions. Deploying the model on Streamlit provides users with easy access to housing predictions.
## Contact
### 📬 Get in Touch!
I’d love to hear from you! Feel free to reach out:- [![GitHub](https://img.shields.io/badge/GitHub-hk--kumawat-blue?logo=github)](https://github.com/hk-kumawat) 💻 — Explore my projects and contributions.
- [![LinkedIn](https://img.shields.io/badge/LinkedIn-Harshal%20Kumawat-blue?logo=linkedin)](https://www.linkedin.com/in/harshal-kumawat/) 🌐 — Let’s connect professionally.
- [![Email](https://img.shields.io/badge/[email protected]?logo=gmail)](mailto:[email protected]) 📧 — Send me an email for any in-depth discussions.
---
## Thank you for exploring this project! 🏠
> "Home is the starting place of love, hope, and dreams." – Anonymous