Skip to content

Latest commit

 

History

History

predict-next-purchase

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Predicting a customer's next purchase using automated feature engineering

Featuretools

As customers use your product, they leave behind a trail of behaviors that indicate how they will act in the future. Through automated feature engineering we can identify the predictive patterns in granular customer behavioral data that can be used to improve the customer's experience and generate additional revenue for your business.

In this tutorial, we show how Featuretools can be used to perform feature engineering on a multi-table dataset of 3 million online grocery orders provided by Instacart to train an accurate machine learning model to predict what product a customer buys next.

You can find this tutorial on the Featuretools site.

Note: If you are running this notebook yourself, refer to the README.md on Github for instructions to download the Instacart dataset

Highlights

  • We automatically generate 150+ features using Deep Feature Synthesis and select the 20 most important features for predictive modeling
  • We automatically generate label times using Compose which can be reused for numerous prediction problems (you can try this yourself!)
  • We quickly develop a model on a subset of the data and validate on the entire dataset in a scalable manner using Dask.

Running the tutorial

Note: In order to run the tutorial, you will need to use Featuretools version 0.16.0 or newer.

You can download the data directly from Instacart here.

After downloading the data, save the CSVs to a directory called data in the root of this repository.

Feature Labs

Featuretools

Featuretools is an open source project created by Feature Labs. To see the other open source projects we're working on visit Feature Labs Open Source. If building impactful data science pipelines is important to you or your business, please get in touch.

Contact

Any questions can be directed to [email protected]