项目作者: EagleDangar

项目描述 :
Predict how much the customer is going to spend money on next Black Friday by analyzing Black Friday's purchase history.
高级语言: Jupyter Notebook
项目地址: git://github.com/EagleDangar/BlackFriday-prediction.git
创建时间: 2020-09-27T15:59:13Z
项目社区:https://github.com/EagleDangar/BlackFriday-prediction

开源协议:

下载


Black Friday Insights and Prediction


I also released my article on @mayur11061997/black-friday-insights-and-prediction-16933b8a8bfb">Medium.

Table Of Contents

What is Black Friday ?

Black Friday is the day after Thanksgiving. Retailers typically offer steep discounts on Black Friday to kick off the holiday season.Black friday is the one of the most profitable days for all the retailers and for the buyers too. It’s common for retailers to offer special promotions and open their doors during the pre-dawn hours on Black Friday to attract customers.

To keep up with the competition, retailers need some insights and cluster of customers to segmantize and to target them. So, retailers can use different marketing strategies to attract different types of customers.

Data scientist can help retailers with proper insights based on the historical data of black friday and also give proper data driven solutions by using Data science methods and by following the CRISP-DM Process (Cross Industry Process for Data Mining). Thus, they can achieve thier target/goal.This project is all about this.

below are the steps of CRISP-DM Process ,

  1. Business Understanding
  2. Data Understanding
  3. Prepare Data
  4. Data Modeling
  5. Evaluate the Results
  6. Deploy

Python and Libraries

  • Python 3.7+
  • pandas , scikit-learn, seaborn, XGBoost, jupyter notebook.

File Structure

  1. ├── README.md
  2. ├── blackfriday-insights-and-model.ipynb
  3. ├── images
  4. ├── blackfriday-1.jpg
  5. ├── blackfriday-2.jpg
  6. └── blackfridaycanceled.jpg
  7. ├── kaggle
  8. └── input
  9. └── black-friday
  10. ├── test.csv
  11. └── train.csv
  12. └── model
  13. ├── BFriday_XGB_Model_V1.pkl
  14. └── BFriday_XGB_Model_V1_details.json
  • Directories
    • kaggle/input/black-friday/ :- Contains all the data-sets
    • images/ :- Contains all the required images
    • model/ :- Contains all the files related to saved model
  • Files
    • blackfriday-insights-and-model.ipynb :- Main notebook of this project
    • train.csv :- Training Data-set
    • test.csv :- Test Data-set
    • BFriday_XGB_Model_V1.pkl :- saved xgboost model
    • BFriday_XGB_Model_V1_details.json :- saved xgboost model’s definition

Summary

In summary, We went through each and every steps of CRISP_DM, did different types of analysis on the data, visualized the data with different types of charts and trained the model with different types of machine learning models to predict the purchase amount that user might spend on next black friday.

Acknowledgements