House-Price-Prediction

🏠 House Price Prediction –AI/ML Internship Task#Β 06

🎯 Objective

This project is part of my AI/ML internship at DevelopersHubΒ Corporation. The goal of this project is to predict house prices using machine learning models based on historical housing data from King County, USA. The predictions are based on features like the number of bedrooms, square footage, location, and more.


πŸ“Š Dataset Used


🧠 Models Applied


πŸ›  Project Structure

House Price Prediction/
β”‚
β”œβ”€β”€ house_price_model.ipynb          # Jupyter notebook for training and evaluation
β”œβ”€β”€ kc_house_data.csv                # Dataset
β”œβ”€β”€ requirements.txt                 # Python dependencies
β”œβ”€β”€ README.md                        # Project overview
β”‚
β”œβ”€β”€ results/
β”‚   └── house_price_predictions.xlsx # Output file with actual vs predicted prices
β”‚
└── src/
    β”œβ”€β”€ preprocessing.py             # Functions for data loading & cleaning
    β”œβ”€β”€ model.py                     # Model training and prediction logic
    └── visualization.py             # Plots and visualizations

πŸ“ˆ Key Results

Metric Linear Regression XGBoost
MAE ~121,000 ~83,000
RMSE ~153,000 ~104,000

(Note: Exact values may vary depending on preprocessing.)


πŸ“Œ How to Run

  1. Clone this repository.
  2. Open the house_price_model.ipynb notebook in Jupyter or VS Code.
  3. Install the requirements:
    pip install -r requirements.txt
    
  4. Run all the cells to load data, preprocess, train, evaluate, and export predictions.

πŸ‘©β€πŸ’» Author

Aafia Azhar
GitHub: @aafia1


πŸ“ Output

The predicted results are saved as:
results/house_price_predictions.xlsx