Giter Club home page Giter Club logo

churnbabychurn's Introduction

Data Science in Apache Py-Spark

Customer Churn Project

Ensemble Models

Level: Moderate

Language: Python

Requirements:

  • HDP + CDSW
  • Spark 2.3

Author: Ian Brooks

Follow: LinkedIn - Ian Brooks PhD

Orginal Fork From: CDSW Demo

Churn Baby Churn

churn

This Github repo is designed to be optmized for Cloudera Data Science Workbench (CDSW), but it is not required. The PySpark code can be used with Apache Spark, and the code examples will run with the included dataset.

In this project, there are 5 different supervised classifer models designed for telco customer churn. The first four classsifer models user are: Random Forest, Gradient Boost Tree, Suport Vector Machines, and Multilayer Perception. The most sucessful model is a Stacked Ensemble Model.

CDSW Run Instructions

  1. In CSDW, download the project using the git url for here
  2. Open a new session, and execute the setup.sh file
  3. In Experiments, run the following scripts
    • dsforteko_pyspark.py - vanilla random forest churn model
    • gbt_churn_pyspark.py - gradient boost tree churn model with normamlized variables, hyperturning, and crossvalidation
    • mlp_churn_pyspark.py - multilayer perceptron churn model with normamlized variables, hyperturning, and crossvalidatio
    • rf_churn_pyspark.py - random forest churn model with normamlized variables, hyperturning, and crossvalidation
    • svm_churn_pyspark.py - support vection machine churn model with normamlized variables, hyperturning, and crossvalidation
  4. Once all experiments have completed, the stacked ensemble classifer model be built, run the following script to build the stacked model.
    • stacked_churn_pyspark.py - stacked ensemble model trained on the prediction of random forest, gradient boost tree, and support vector machine
  5. Once the stacked model has been built, the stacked model can be deployed using the following script.
    • predict_churn_stackedMLP_pyspark.py

churnbabychurn's People

Watchers

James Cloos avatar  avatar

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.