Workflow: CASE Switch
This workflow implements a CASE Switch to control workflow execution. The goal is to classify the car makers based on the cars they produce. The target class is the "make" column. The choice of which prediction algorithm is used is left to the end user and can be selected through the Value Selection Widget node. The choices are
a set of rules (top branch),
a Decision Tree (middle branch) or,
a PNN (bottom branch).
Depending on which predictive model has been chosen, the corresponding port of the CASE Switch Start node is activated and the respective model is trained and applied. The predictions are collected in the CASE Switch End node (data ports), and performances on the training set are evaluated at the end with a Scorer node. The important part is to produce predictions in an output column that is named the same on all three branches. The selected trained model is collected with a separate CASE Switch End node (model ports) and written to a file.