Icon

02 Analyze Data by Applying a Churn Predictor

<p><strong>Analyze Data: 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 Learning Center https://www.knime.com/learning
URL: KNIME Cheat Sheet: Building a KNIME workflow for beginners https://www.knime.com/cheat-sheets/building-knime-workflow-beginners
URL: KNIME Cheat Sheet: Machine learning with KNIME Analytics Platform https://www.knime.com/files/machine-learning-with-knime.pdf
URL: YouTube: Training and Applying Decision Trees in KNIME https://youtu.be/UeQAHusmwbI?si=-xZJA5rWwBIiMc8T
URL: YouTube: Behind the Scenes of the Decision Tree with KNIME https://youtu.be/8dxH_Arc4QM?si=wvoNNJa1UWPTH5nb
URL: Webinar: KNIME101: Machine Learning for Beginners with KNIME https://www.knime.com/events/knime101-machine-learning-beginners-knime
URL: Training Workflow https://hub.knime.com/s/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 into the workflow and open the configuration window. Connect the output of the "PMML Reader" node to Port 0 and the input data to Port 1.

Step 2: Decide whether you want to change the prediction column name and to append the normalized probabilities to the 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 into the workflow and click on it to open the configuration window.

Step 2: Use the "Browse" option to locate the model and click "Choose file". Click "Apply" to save the settings.

Step 3: Execute the node to read the model.

Analyze Data: 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