Icon

04 Decision Tree Model

04 Decision Tree Model - Exercise

This workflow shows a hands-on exercise in the L2-DW Introduction to KNIME Analytics Platform for Data Wranglers - Advanced course

Exercise: Train a Decision Tree ModelThe provided metanode contains a workflow that accesses and preprocesses demographics, geo coordinates, andtravel risk information in different countries/territories. Specifically, it creates a binomial column Travel with twovalues "Travel safely" and "Travel with care" based on the travel risk categories. Your task is to predict this travel riskcategory via the following steps:1. Partition the data into a training set (70%) and a test set (30%). Apply stratified sampling on the Travel column.2. Build a decision tree model to predict the travel risk category (Travel column). Apply the model to the test set.3. Evaluate the model's performance. Use the Scorer or Scorer (JavaScript) node. Node 38Node 40Node 41Node 42Node 43 Data access andpreprocessing Partitioning DecisionTree Learner Decision TreePredictor Scorer (JavaScript) Equal Size Sampling Exercise: Train a Decision Tree ModelThe provided metanode contains a workflow that accesses and preprocesses demographics, geo coordinates, andtravel risk information in different countries/territories. Specifically, it creates a binomial column Travel with twovalues "Travel safely" and "Travel with care" based on the travel risk categories. Your task is to predict this travel riskcategory via the following steps:1. Partition the data into a training set (70%) and a test set (30%). Apply stratified sampling on the Travel column.2. Build a decision tree model to predict the travel risk category (Travel column). Apply the model to the test set.3. Evaluate the model's performance. Use the Scorer or Scorer (JavaScript) node. Node 38Node 40Node 41Node 42Node 43Data access andpreprocessing Partitioning DecisionTree Learner Decision TreePredictor Scorer (JavaScript) Equal Size Sampling

Nodes

Extensions

Links