Skip to content

vishanshm/Project-House_Price_Prediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

House Price Prediction (Regression) 🏠

Open In Colab Kaggle

πŸ“Œ Project Objective

The goal is to build a robust regression model capable of predicting the continuous variable SalePrice based on 79 explanatory variables describing almost every aspect of residential homes.

πŸ› οΈ Key Workflow & Concepts

  • Target Variable Analysis: Identified positive skewness in SalePrice and applied Log Transformation (np.log1p) to normalize the distribution for better model performance.
  • Advanced Data Preprocessing:
    • Handled missing values using context-aware strategies (e.g., filling LotFrontage with the median of the neighborhood).
    • Conducted feature encoding using Label Encoding for ordinal data and One-Hot Encoding for nominal data.
  • Feature Engineering: Scaled numerical features using StandardScaler to ensure uniform influence on the model.
  • Model Comparison: * Built a baseline Linear Regression model.
    • Implemented an advanced XGBoost Regressor to handle non-linear relationships and improve accuracy.
  • Evaluation Metrics: Evaluated models using RMSE (Root Mean Squared Error), MAE (Mean Absolute Error), and R-squared.

πŸ“Š Results Summary

  • Skewness Correction: Reduced SalePrice skewness from 1.88 to a more normal distribution.
  • Model Performance: The XGBoost model significantly outperformed the baseline, capturing complex feature interactions that linear models missed.

πŸš€ Repository Structure

Project-House_Price_Prediction/
β”œβ”€β”€ Project_House_Price_Prediction.ipynb   # Full ML Pipeline
β”œβ”€β”€ train.csv                              # Training Data
β”œβ”€β”€ test.csv                               # Testing Data
└── README.md                              # Project documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published