GithubHelp home page GithubHelp logo

soumyadipghorai / customer-churn Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.3 MB

end to end flask app to predict customer churn

License: Creative Commons Zero v1.0 Universal

Python 0.26% Jupyter Notebook 97.42% CSS 0.12% HTML 2.21% Procfile 0.01%

customer-churn's Introduction

Customer Churn Prediction

Predict if a customer will churn or not using Machine learning

In this repository, we have performed the end to end Exploratory Data Analysis, and idenfitied the characteristics of the customers that are more likely to churn, and I have used them wisely to create a model, and lately, have deployed the model using flask and heroku.

header_gif


Approach :

  • Performed some data cleaning and feature engineering on raw data.
  • Selected 6 best features to deploy.
  • fitted multiple classification model and finally selected the stacked classification model.
  • Saved the model in a .pkl file and.
  • Later used the same model in the flask app and for frontend used HTML, CSS and Bootstrap.
  • Deployed the whole project on ``Herokuand usedGoogle Analytics` for tracking users.

How to run?

To run the app you need to download this repository along with the required libraries. and you have to the app.py file.

after running app.py open http://127.0.0.1:5000


Document Structure

Personal Finance 
โ”‚
|---- Data
|   |-- ML_models
|   |   |--
|   |
|   |-- preprocessed_data.csv
|   |-- WA_Fn-UseC_-Telco-Customer-Churn.csv
|
|---- images
|   |-- Churn-Prediction_Trim.gif
|
|---- notebooks 
|   |-- models
|   |   |-- analyseModel.py
|   |   |-- hyperparameterTuning.py
|   |   |-- *.ipynb
|   |-- *.ipynb
|
|---- static 
|   |-- images
|   |   |-- favicon
|   |   |   |-- *.png
|
|   |-- styles
|   |   |-- layout.css
|   
|---- templates
|   |   |-- index.html
|   |   |-- layout.html
|   |   |-- prediction.html
|
|---- .gitignore
|---- app.py
|---- LICENSE
|---- Procfile
|---- README.md
|---- requirements.txt
|---- runtime.txt


Technologies used :

  • python library - numpy, pandas, seaborn, matplotlib, flask, plotly, sklearn, pickle, xgboost
  • version control - git
  • backend - flask
  • concept - Machine Learning

Tools and Services :

  • IDE - Vs code
  • Application Deployment - Heroku
  • Code Repository - GitHub


If you Liked this project the you can consider connecting with me:

customer-churn's People

Contributors

soumyadipghorai avatar

Watchers

 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.