Icon

Week14-CustomerChunPrediction-DT-KNIME_​project

An example to build a Decision Tree Classification Model to predict the customer's churn

  1. Read the raw data

  1. Data Preprocessing

  1. Split the dataset into training

    and test sets

  1. Train a DT model with training set

    (first partition)


  1. Make prediction with the trained model by using the test set (second partition)

  1. Evaluate the DT model's prediction performance

Read CallsData.xls
Excel Reader
CSV Reader
Join contract data and call data into a new table by matching
Joiner
Convert Area Code and Churn Columnsinto String Types
Number to String
Color rows by Churn ValueChurn = 0 -> PinkChurn = 1 -> Blue
Color Manager
Training set: 80%Test set: 20%
Table Partitioner
Decision Tree Learner
Save the trained DTmodel into a PMML file
PMML Writer
Created a new column prediction(Churn) to contain the predictedvalues
Decision Tree Predictor
ROC Curve
Compare the real valuesand predicted values
Scorer
Image Writer (Port)
CSV Writer
CSV Writer

Nodes

Extensions

Links