GithubHelp home page GithubHelp logo

carlocontaldi / hellofresh_case_study Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 660 KB

Data science case study: Churn Prediction using real-world HelloFresh data.

License: MIT License

Python 100.00%
data-science case-study hellofresh churn prediction conda xgboost

hellofresh_case_study's Introduction

HelloFresh Case Study

Data science case study on subscription churn rate, based on real-world HelloFresh data. The report includes an in-depth description of my work and thought process. This project has been carried out in 4 days (time allotted for the challenge).

Prerequisites

I used Conda 4.5.11 with Python 3.6.5 on a machine implementing Windows 10 64-bit to set up my PyData stack. I worked within a new environment defined and activated via terminal as in the following:
> conda create --name hellofresh python=3.6.5 numpy pandas matplotlib seaborn scikit-learn py-xgboost
> conda activate hellofresh

The data used in this case study can be found here. If you would like to reproduce my results download the data files, store them in a "data" folder and run the main script.

The main.py script executes the whole workflow and saves the output in a logfile.
> python main.py

Highlights

  • EDA: framed the problem and leveraged ambiguous features by thinking out of the box.
  • Feature-engineered a new dataset more suitable to the task at hand and applied relevant models.
  • My pipeline involved one-hot encoding, normalization, multicollinearity assessment, grid search, logistic regression and XGBoost with early stopping.
  • My best model achieved 81.5% accuracy and performed statistically significantly better than the naïve baseline on the test set (61%).

hellofresh_case_study's People

Contributors

carlocontaldi avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

toshitgarg1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.