Icon

01_Training_a_Churn_Predictor_LogReg

Four basic steps in Data Preparation before Training a Churn Predictor
Annotations and comments
  • Churn Prediction - Training - Logistic Regression This workflow is an example of how to train a basic machine learning model for a churn prediction task, using a Logistic Regression algorithm. Notice the four basic data prep steps: missing value imputation, normalization, type conversion, and SMOTE. Also notice the usage of (Apply) nodes to prevent data leakage.
  • Read Data Contract Data Calls Data
  • Data Preparation Partitioning 80%-20% Data Explorer for no of missing values Number to String (Churn)
  • Training SMOTE Logistic Regression Learner Save all Models
  • Data Preparation Category To Number (State) Missing Value (Median, Median, Unknown) Normalizer (z-score)
  • Testing all transformations (Apply) Logistic regression Predictor Scorer
  • contract data
  • State
  • Calls data
  • predict churn
  • remove rows with misisng values
  • log_reg.model
  • normalizer.model
  • z-score
  • churn -> String
  • 80% vs. 20%
  • oversampling minority class
  • performance scoring

Nodes

Extensions

Links