Icon

02 Analyze Apply Churn Predictor

<p><strong>Analyze Data by Applying a Churn Predictor</strong></p><p>This workflow demonstrates the use case of <strong>accessing a trained model</strong> and using it for churn prediction on new set of rows. The <strong>PMML Reader</strong> node is used to read the trained model that was written by the previous workflow in this workflow group.</p><p>Link to the training workflow: https://hub.knime.com/s/tqVpSXd1crC_Fes6</p>

URL: KNIME Self Paced Course https://www.knime.com/knime-self-paced-courses
URL: KNIME Cheat Sheet : Building a KNIME Workflow for Beginners https://www.knime.com/sites/default/files/2021-07/CheatSheet_Beginner_A3.pdf
URL: Training Workflow for Churn Prediction https://kni.me/w/tqVpSXd1crC_Fes6

Apply trained model to new input data
Read data and trained decision tree model
Pre-processing (data preparation)

Transform the data in the same way it was prepared during the training of the model.

How to classify data using a trained model?

Step 1: Drag the "Decision Tree Predictor" node and open the dialog. Connect the output of the "PMML Reader" node to Port 0 and the input data to Port 1. Execute the node.

Step 2: Provide the options on what should be the prediction column name and if normalized probabilities are required at output.

Step 3: Click "Apply and Execute" to execute the node.

Read a model using a PMML Reader node


Step 1:Drag the "PMML Reader" node and click on it to open the dialog.

Step 2: Use the "Browse" option to locate the model and click "Choose file". Don't forget to save the settings by clicking "Apply".

Step 3: Execute the node to read the model.

Analyze Data by Applying a Churn Predictor


This workflow demonstrates the use case of accessing a trained model and using it for churn prediction on new set of rows. The PMML Reader node is used to read the trained model that was written by the previous workflow in this workflow group.

Link to the training workflow: https://hub.knime.com/s/tqVpSXd1crC_Fes6

Workflow complete!

Keep the momentum going by exploring Just KNIME It!on the Hub to challenge yourself and see how these nodes can be integrated into more complex workflows and use cases.

Join input dataon "Area Code"and "Phone"
Joiner
Read trainedDecision Tree model
PMML Reader
Convert "Area Code"to String
Number to String
Apply traineddecision tree
Decision Tree Predictor
Color data by predicted "Churn" values
Color Manager
Visualizeoutput table
Table View
ReadCallsData.xls
Excel Reader
ReadContractData.csv
CSV Reader

Nodes

Extensions

Links