项目作者: snchimata

项目描述 :
Project Predict Customer Churn of ML DevOps Engineer Nanodegree by Udacity.
高级语言: Jupyter Notebook
项目地址: git://github.com/snchimata/Udacity_MLDVPS_Customer_churn.git
创建时间: 2021-08-26T01:00:51Z
项目社区:https://github.com/snchimata/Udacity_MLDVPS_Customer_churn

开源协议:MIT License

下载


Predict Customer Churn

Project Description

Customer attrition, also known as customer churn, is the loss of clients or customers. Businesses measure and track churn as a percentage of lost customers compared to total number of customers over a given time period. Identifying and handling the customers about to churn can improve overall outcomes of the business.

This project seeks to answer the customer churn that is happening in the banking industry using clean code principles

The project is divided into the following sections:

  • Import Data
  • Exploratory data analysis and visualizations
  • Feature engineering to transform data
  • Building Models and evaulating performance

Project Components

There are two components in this project:

1. Churn Library

File churn_library.py:

  • Loads the bank_data dataset
  • Performs EDA and Visualizations
  • Feature Engineering
  • Model and Evaluation

2. Churn Script Logging and Testing

File churn_script_logging_and_testing.py:

  • Tests churn library
  • Logs activity

Running

Dependencies

List of libraries used for this project:

  1. autopep8==1.5.7
  2. joblib==0.11
  3. matplotlib==2.1.0
  4. numpy==1.12.1
  5. pandas==0.23.3
  6. pylint==2.9.6
  7. scikit-learn==0.22
  8. seaborn==0.8.1

Use the package manager pip to install the dependencies from the requirements.txt

  1. pip install -r requirements.txt

Modeling

Run the following command to execute the main script

  1. python churn_library.py

script execution generates

  • EDA plots are available in directory ./images/eda/
  • Model metrics are available in directory ./images/results/
  • Model pickle files are available in directory ./models/
  • Log files are available in directory ./logs/results.log

Testing and Logging

Run the following command to run the tests script

  1. python churn_script_logging_and_tests.py

script execution generates

  • Log file ./logs/results.log

License

Distributed under the MIT License. See LICENSE for more information.