This project aims to predict house prices based on various features such as crime rate, zoning, and room count. We use the Boston Housing Dataset for this purpose.
The project consists of the following files:
app.py
: The main Python script containing the data loading, preprocessing, model training, evaluation, and prediction functions.boston.csv
: The dataset used for training and testing the model.README.md
: This file, providing an overview of the project, instructions for installation and usage, and other details.
To get started with this project, follow the steps below:
- Python 3
- pandas
- scikit-learn
- Clone the repository:
git clone https://github.com/your_username/house-price-prediction.git
- Install the required dependencies:
pip install pandas scikit-learn
- Run the
app.py
script:python app.py
- The script will load the dataset, preprocess it, split it into training and testing sets, train the model, evaluate its performance, and make predictions.
- Evaluation metrics (Mean Absolute Error, Mean Squared Error, and R-squared) will be displayed in the console.
- Sample predictions will also be printed.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or create a pull request.
This project is licensed under the MIT License.