This project predicts house prices using a Linear Regression model built with Scikit-learn.
The model is trained using two input features:
- Area
- Number of Rooms
and predicts the house price.
House-Price-Prediction/
├── data/
│ └── house_price.csv
├── images/
│ ├── actual_vs_predicted.png
│ └── residual_plot.png
├── models/
│ └── house_price_model.pkl
├── notebook/
│ └── House_Price_prediction.ipynb
├── README.md
├── requirements.txt
└── .gitignore
- Python
- Pandas
- NumPy
- Matplotlib
- Scikit-learn
- Joblib
- Google Colab
- Load the dataset
- Explore the data
- Select features and target
- Split the dataset into training and testing sets
- Train a Linear Regression model
- Predict house prices
- Evaluate the model
- Analyze residuals
- Save the trained model
| Metric | Value |
|---|---|
| Mean Absolute Error (MAE) | 72,334.75 |
| Mean Squared Error (MSE) | 8,610,424,544.78 |
| R² Score | 0.5149 |
The trained model is stored in:
models/house_price_model.pkl
It can be loaded using:
import joblib
model = joblib.load("models/house_price_model.pkl")- Add more features such as bathrooms, garage, and location
- Try Decision Tree Regression
- Try Random Forest Regression
- Perform feature engineering
- Tune model hyperparameters
Hamed Wahedi
Computer Science Student | Machine Learning & AI Engineer

