Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

House Price Prediction using Regression Models

1️⃣ PROJECT EXPLANATION

Simple Explanation

House Price Prediction is a system that looks at property details like area, bedrooms, bathrooms, and location to estimate how much a house will cost. It's like having a digital real estate expert that can value thousands of homes in seconds.

Technical Explanation

This is a Supervised Learning Regression task. The system maps a set of input features (independent variables) to a continuous numerical output (dependent variable), which is the SalePrice. We use algorithms like Linear Regression and Random Forest to minimize the error between predicted and actual prices.

Industry Importance

  • Real Estate Portals: Companies like Zillow or Housing.com use this to suggest listing prices.
  • Banks & Loan Companies: To verify if a property is worth the loan amount requested.
  • Investors: To identify undervalued properties for quick ROI.

Workflow

Housing DataPreprocessingFeature EngineeringRegression ModelPrice PredictionInsights


2️⃣ TECH STACK (Advanced Student Option)

  • Language: Python 3.11+
  • Data Manipulation: Pandas, NumPy
  • Visualizations: Matplotlib, Seaborn, Plotly
  • Machine Learning: Scikit-learn, XGBoost
  • Optimization: Optuna (Hyperparameter Tuning)
  • Explainability: SHAP (Explainable AI)
  • Serving: FastAPI (Inference API)
  • Dashboard: Streamlit (High-fidelity Visuals)

3️⃣ PROJECT ARCHITECTURE

Input

  • property area (sq ft), number of bedrooms/bathrooms, location, property age, garage capacity, etc.

Processing

  • Cleaning: Handling missing values and removing outliers.
  • Encoding: Converting categorical neighborhoods and qualities into numbers.
  • Scaling: Standardizing numerical values for better model convergence.
  • Feature Engineering: Creating new features like "Property Age" and "Baths Total".

Model

  • Regression Core: Gradient Boosted Trees (XGBoost) optimized with Optuna.

Output

  • Predicted Price: Actual market value in currency.

4️⃣ FOLDER STRUCTURE

House-Price-Prediction/
│
├── data/               # Raw and processed datasets (CSV, Parquet)
├── notebooks/          # Jupyter notebooks for EDA and testing
├── src/                # Core Python scripts (features, train, predict)
├── models/             # Saved model artifacts (.joblib)
├── outputs/            # Exported analytics, plots, and CSV results
├── images/             # Screenshots for documentation
├── README.md           # This project documentation
├── requirements.txt    # Required Python libraries
└── main.py             # Pipeline orchestration script

5️⃣ INSTALLATION GUIDE

  1. Setup Virtual Environment:

    python -m venv venv
    .\venv\Scripts\activate
  2. Install Libraries:

    pip install -r requirements.txt

6️⃣ HOW TO RUN

  1. Train & Evaluate:

    python main.py --mode train
    python main.py --mode evaluate
  2. Start Dashboard:

    python main.py --mode dashboard
  3. Start API:

    python main.py --mode api

📊 Screenshots

Interactive AI Dashboard

Dashboard Preview

Model Performance Comparison

Metrics Comparison

Error Analysis & Parity Plots

Model Analysis


🎥 Demo Video

Watch Demo

👉 Click here to watch the full system demonstration


📊 Sample Outputs

  • Model Comparison: Available in outputs/model_performance.csv
  • Correlation Heatmap: Available in outputs/metrics_comparison.png
  • AI Insights: Visualized live in the Streamlit Dashboard.

About

A complete end-to-end Machine Learning regression project that predicts house prices based on property features such as area, location, number of rooms, bathrooms, and construction details.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages