A machine learning web application that predicts residential property prices using Linear Regression, deployed with Flask on Render.
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 |
- 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
Data Collection → Preprocessing → Feature Selection → Train/Test Split
→ Model Training → Evaluation → Visualization → Flask → Cloud
Model: Linear Regression (Scikit-learn)
R² Score: 0.6494
| 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 |
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
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
- Python 3.8+
- pip
# 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.pyOpen your browser at http://127.0.0.1:5000
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.
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.
Soumyadip Das
Aspiring AI/ML & Full-Stack Developer
If this project was helpful, consider giving it a ⭐ on GitHub.