Table of Contents

Description

This is a transnational data set which contains all the transactions occurring between 01/12/2010 and 09/12/2011 for a UK-based and registered non-store online retail.The company mainly sells unique all-occasion gifts. Many customers of the company are wholesalers.

References

Feature Description
InvoiceNo Invoice number. Nominal, a 6-digit integral number uniquely assigned to each transaction. If this code starts with letter 'c', it indicates a cancellation.
StockCode Product (item) code. Nominal, a 5-digit integral number uniquely assigned to each distinct product.
Description Product (item) name. Nominal.
Quantity The quantities of each product (item) per transaction. Numeric.
InvoiceDate Invice Date and time. Numeric, the day and time when each transaction was generated.
UnitPrice Unit price. Numeric, Product price per unit in sterling.
CustomerID Customer number. Nominal, a 5-digit integral number uniquely assigned to each customer.
Country Country name. Nominal, the name of the country where each customer resides.

Load the libraries

Read the clean data

Data Processing

Create datetime features

Create transaction data

Get RFM data

Modelling 01: Statistical method BG/NBD + GammaGamma

Prediction

Prediction is done in three steps:

  1. Predict the expected number of transactions
  2. Predict the average order value
  3. Multiply number of transations by the average order value

Evaluation

Modelling 02: ML Approach

Feature Engineering

Modelling DNN

Modelling XGBoost

Time Taken