Skip to content

Regression modeling to predict customer purchase amount using XGBoost, LightGBM, and Neural Networks. Includes nested cross-validation, hyperparameter tuning, and RMSE evaluation.

Notifications You must be signed in to change notification settings

LifeOf-py/Customer-Spending-Prediction-with-XGBoost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฎ Customer-Spending-Prediction-with-XGBoost

This project focuses on building, tuning, and evaluating multiple regression models to predict how much a customer will spend on a catalog purchase based on demographic and behavioral features.


๐Ÿ“Œ Project Overview

  • Task: Predict the continuous Purchase amount from customer data.
  • Goal: Identify the best regression model that minimizes prediction error.
  • Dataset: Customer-level features and their catalog purchase amounts.
  • Metric: Root Mean Squared Error (RMSE)

๐Ÿงฐ Tools & Libraries

  • Python, Jupyter Notebook
  • scikit-learn
  • XGBoost
  • LightGBM
  • MLPRegressor from sklearn.neural_network

๐Ÿง  Modeling Strategy

  • Applied Nested Cross-Validation to ensure unbiased model evaluation.
  • Compared models: Linear Regression, KNN, SVR, Decision Tree, Random Forest, Gradient Boosting, XGBoost, LightGBM, and Neural Network.
  • Final model was tuned using GridSearchCV and tested on a holdout set.

โœ… Results

  • Best model: XGBoost (or Neural Net, depending on part B)
  • Robust performance and generalization verified on the holdout set.

๐Ÿ’ผ Business Value

Predicting customer spend helps optimize:

  • Targeted marketing
  • Inventory forecasting
  • Personalized promotions

๐Ÿ“‚ Explore the full notebook: regression_modeling.ipynb

About

Regression modeling to predict customer purchase amount using XGBoost, LightGBM, and Neural Networks. Includes nested cross-validation, hyperparameter tuning, and RMSE evaluation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published