This project demonstrates the process of building a real estate price prediction website. We start by developing a machine learning model using sklearn and linear regression, leveraging the Bangalore home prices dataset from Kaggle.com.
-
Model Building with sklearn
- Utilize linear regression to predict home prices based on features like square footage, number of bedrooms, etc.
- Cover data loading, cleaning, outlier detection, feature engineering, dimensionality reduction, and hyperparameter tuning using GridSearchCV.
-
Python Flask Server
- Develop a Flask server to host the trained model.
- Handle HTTP requests from the frontend to predict home prices.
-
Website Development
- Create a frontend using HTML, CSS, and JavaScript.
- Allow users to input home features and retrieve predicted prices from the Flask server.
- Python: Main programming language.
- Numpy and Pandas: Data cleaning and manipulation.
- Matplotlib: Data visualization.
- Sklearn: Machine learning model building.
- Jupyter Notebook, Visual Studio Code, PyCharm: IDEs used for development.
- Flask: Python micro web framework for HTTP server.
- HTML/CSS/JavaScript: Frontend development for user interface.
- Clone the Repository
git clone <repository_url>
cd real-estate-price-prediction
-
Install Dependencies
pip install -r requirements.txt
-
Run Flask Server
python app.py
-
Open the Website
- Navigate to
http://localhost:5000
in your web browser.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
- Data source: Bangalore home prices dataset on Kaggle
- Inspiration and guidance from codebasics.io.