Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏡 House Price Prediction using Machine Learning

A comprehensive machine learning project that predicts house prices based on various property features using Python 🐍, built with a user-friendly Streamlit web interface.

Python Streamlit Scikit-Learn License


📋 Table of Contents


🎯 Overview

This project implements a machine learning model to predict house prices based on various property characteristics.
It includes:

  • 🧮 Model development in Jupyter Notebook
  • 🌐 Interactive web application built with Streamlit
  • Real-time predictions based on user inputs

✨ Features

  • 📊 Comprehensive Data Analysis on 14,619 house records
  • 🏠 Multiple Property Features (23 features including bedrooms, bathrooms, living area, lot area, location, amenities, etc.)
  • 🎛 Interactive Streamlit Web App
  • Instant Price Predictions
  • 🧹 Data Cleaning & Preprocessing
  • 💾 Model Persistence with .pkl files

📊 Dataset

The project uses House Price India.csv containing:

  • Records: 14,619
  • Features: 23
  • Price Range: 💲78,000 → 💲7,700,000
  • Average Price: 💲538,806

🔑 Key Columns

  • bedrooms → Number of bedrooms
  • bathrooms → Number of bathrooms
  • living_area → Square feet of living space
  • lot_area → Square feet of lot
  • built_year → Construction year
  • property_age → Age of property
  • distance_from_airport ✈️ → Distance to airport
  • nearby_schools 🏫 → Number of schools nearby
  • price → Target variable

📁 Project Structure

House-Price-Prediction-Python ├── 📊 House Price India.csv # Dataset.

├── 📓 Notebook.ipynb # ML Development & EDA.

├── 🌐 app.py # Streamlit Web App.

├── 🤖 house_price_model.pkl # Trained Model (Prod).

├── 💾 model.pkl # Backup Model.

└── 📖 README.md # Documentation .


⚙️ Installation & Usage

🔧 Prerequisites

  • Python 3.7+
  • pip package manager

🖥️ Setup

# 1. Clone the repo
git clone https://github.com/Helloworld880/House-Price-Prediction-Python.git
cd House-Price-Prediction-Python

# 2. Install dependencies
pip install streamlit pandas numpy scikit-learn joblib matplotlib seaborn

# 3. Verify installation
python -c "import streamlit, pandas, numpy, sklearn, joblib; print('✅ All dependencies installed!')"

🚀 Run the Web App
streamlit run app.py

📓 Run Jupyter Notebook
pip install jupyter
jupyter notebook Notebook.ipynb

🤖 Model Details
The ML pipeline includes:

🔄 Preprocessing
Remove missing values & duplicates
Feature scaling & encoding

🧠 Training
Algorithm: Regression model (see Notebook for details)
Feature Engineering
Model Evaluation (metrics & validation)

💾 Persistence
Model saved with joblib as .pkl

🎯 Input Features
Bedrooms
Bathrooms
Living Area (sq ft)
Lot Area (sq ft)
Property Age (years)

🖥️ Web Application

The Streamlit app provides:
✔️ Clean interface with input fields
✔️ Real-time predictions with 🎈 animations
✔️ Error handling & validation
✔️ Mobile-friendly responsive design

🛠️ Technologies Used

Python
Streamlit 
Pandas
NumPy
Scikit-Learn
Joblib
Matplotlib
Seaborn
Jupyter Notebook



📈 Future Enhancements

🌲 Add advanced ML models (Random Forest, XGBoost)
✅ Implement cross-validation
📊 Add feature importance visualizations
🏊 Include more features (garage, pool, etc.)
📉 Display performance metrics in app
📤 Data upload functionality
📈 Price trend visualizations
🔗 REST API endpoints
🤝 Contributing

Contributions are welcome!
Fork the repo
Create branch → git checkout -b feature/new-feature
Commit → git commit -m "Add new feature"
Push → git push origin feature/new-feature
Open a Pull Request


📌 Guidelines
Follow PEP 8
style
Comment complex code
Test thoroughly
Update docs

📝 License
This project is licensed under the MIT License

📞 Contact
GitHub → @Helloworld880
Project Link → House-Price-Prediction-Python

🙏 Acknowledgments
📊 Dataset source: House Prices (India)
🌐 Streamlit Community
🤖 Scikit-learn contributors
💡 Open-source community for tools & inspiration

	✨ Made with ❤️ by Helloworld880
 

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages