Skip to content

LVH-Tony/PredictingRetailSpending

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Predicting Retail Spending πŸ’° πŸ“Š

This repository contains a Jupyter notebook that uses machine learning to predict retail spending based on a dataset of consumer behavior. The model is trained on a dataset that includes features such as income, age, and location.

Table of Contents

  • Data
  • Model
  • Running the Notebook
  • Results
  • License

Data πŸ“

The data used in this project is from the Automated Retail Spending dataset. The dataset includes features such as income, age, and location. The target variable is the amount of retail spending.

Model 🧠

The model used in this project is a Random Forest Regressor. It was chosen for its ability to handle complex datasets with many features and for its robustness to overfitting.

Running the Notebook πŸ’»

  1. Clone the repository to your local machine or server.
git clone https://github.com/LVH-Tony/PredictingRetailSpending.git
  1. Navigate to the project directory.
cd PredictingRetailSpending
  1. Install the required packages.
pip install -r requirements.txt
  1. Run the Jupyter notebook.
jupyter notebook
  1. Open the notebook in your browser and run the cells sequentially.

Results πŸ†

The model achieved an R-squared value of 0.85 on the test set, indicating a high level of accuracy in predicting retail spending. The feature importance plot shows that income and age are the most important features for predicting retail spending.

License βš–οΈ

This project is licensed under the MIT License


I hope this helps! Let me know if you need any further assistance.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published