Skip to content

About

An end-to-end Machine Learning web application that predicts house prices using Linear Regression and Flask. The project includes data preprocessing, model training, visualization, a professional animated UI, and cloud deployment with Render.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AI House Price Predictor

A machine learning web application that predicts residential property prices using Linear Regression, deployed with Flask on Render.


Overview

This project demonstrates an end-to-end machine learning pipeline — from raw data to a live, cloud-hosted web app. Users input housing attributes and receive an instant price prediction powered by a trained Linear Regression model.

Input features accepted by the model:

Feature Description
Area Total square footage of the house
Bedrooms Number of bedrooms
Bathrooms Number of bathrooms
Stories Number of floors
Parking Number of parking spaces

Live Demo

🔗 house-price-predictor


Features

  • Real-time house price prediction via a trained ML model
  • Clean glassmorphism UI with animated background
  • Separate result page for predicted output
  • Data visualizations included in the notebook
  • Fully deployed on Render cloud platform

ML Workflow

Data Collection → Preprocessing → Feature Selection → Train/Test Split
     → Model Training → Evaluation → Visualization → Flask → Cloud

Model: Linear Regression (Scikit-learn)
R² Score: 0.6494


Tech Stack

Layer Technology Role
Language Python 3 Core programming
Data Pandas, NumPy Processing & computation
Visualization Matplotlib, Seaborn EDA & result plots
ML Scikit-learn Model training & eval
Backend Flask Web framework
Frontend HTML, CSS UI design
Server Gunicorn Production WSGI server
Deployment Render Cloud hosting
VCS Git / GitHub Version control

Visualizations

The Jupyter notebook (house_price.ipynb) includes:

  • Correlation heatmap
  • Price distribution plot
  • Area vs. price scatter plot
  • Actual vs. predicted price comparison
  • Regression line plot

Project Structure

HousePricePredictor/
│
├── app.py                  # Flask application entry point
├── house_price.ipynb       # ML workflow & EDA notebook
├── house_price_model.pkl   # Serialized trained model
├── Housing.csv             # Dataset
├── requirements.txt        # Python dependencies
├── Procfile                # Render/Gunicorn process config
├── README.md
│
├── static/
│   └── style.css           # Frontend styles
│
└── templates/
    ├── index.html          # Input form page
    └── result.html         # Prediction result page

Getting Started

Prerequisites

  • Python 3.8+
  • pip

Installation

# 1. Clone the repository
git clone https://github.com/YOUR_USERNAME/house-price-predictor.git
cd house-price-predictor

# 2. Install dependencies
pip install -r requirements.txt

# 3. Run the application
python app.py

Open your browser at http://127.0.0.1:5000


Deployment

This project is deployed on Render using Gunicorn as the production server.

The Procfile contains:

web: gunicorn app:app

To deploy your own instance, fork the repository and connect it to a new Render Web Service.


Model Performance

The Linear Regression model achieves an R² score of 0.6494 on the test set, meaning approximately 65% of the variance in house prices is explained by the selected features.


Author

Soumyadip Das
Aspiring AI/ML & Full-Stack Developer


If this project was helpful, consider giving it a ⭐ on GitHub.

About

An end-to-end Machine Learning web application that predicts house prices using Linear Regression and Flask. The project includes data preprocessing, model training, visualization, a professional animated UI, and cloud deployment with Render.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages