Icon

week12-DecisionTreeModel_​KNIME_​project

Build a KNIME workflow to train a Decision Tree Model to predict the adult's income

  1. Load the csv file before training the model

  1. Data Preprocessing (change columns fnlwg)

  1. Graphical Properties

  1. Data analysis with some statistics (generate some reports)

  1. Split the dataset into training set (80%) and test set (20%)

  1. Train a Decision Tree (DT) Classification Model with the training set (80%)

Training set

  1. Use the trained DT model to make new predictions by using

Test set

  1. Evaluate the DT model's prediction performance

  1. Output evaluation results

read adult.csv
CSV Reader
Column Renamer
red: =50k (income)blue: >50k (income)
Color Manager
Statistics
training set: 80%test set: 20%
Table Partitioner
Decision Tree Learner
Decision Tree to Image
Decision Tree Predictor
Scorer
confusion matrix
Excel Writer
accuracy statistics
Excel Writer

Nodes

Extensions

Links