Icon

10.1 Integrated Deployment - solution

Integrated Deployment - Solution

Solution to the exercise 6.1 for KNIME User Training
- Train a Decision Tree model
- Capture preprocessing and trained model
- Deploy workflow with Integrated Deployment

Step 1: Capture Preprocessing- use the Capture Workflow Start node with dataport types to start capturing your preprocessingpart of the workflow. - use the Number to String node to convert theSentimentRating and WebActivity columns- use the Capture Workflow End node with dataport types to end your preprocessing part of theworkflow Step 2: Capture Prediction Model- use the Capture Workflow Start node with dataport types to start capturing your prediction model- use the Decision Tree Predictor node for yourmodel predictions- use the Capture Workflow End node with dataport types to end your prediction model Step 3: Combine capturedWorkflows and Deploy- use the Workflow Combinernode to combine the preprocessingworkflow and the model predictionworkflow (HINT: the first part needsto be connected to the upper inputport)- use the Workflow Writer node todeploy your workflow Activity I: Create Model for Deployment - capture the preprocessing of your data and the model prediction using the Capture Workflow Start and Capture Workflow End nodes - combine your captured workflows using the Workflow Combiner - write/deploy your workflow using the Workflow Writer node ReadCurrentDetailData.tableCapturepreprocessingCapture modelDeploy workflow DecisionTree Learner Decision TreePredictor Table Reader Number To String Partitioning CaptureWorkflow Start CaptureWorkflow End CaptureWorkflow Start CaptureWorkflow End Workflow Combiner Workflow Writer Step 1: Capture Preprocessing- use the Capture Workflow Start node with dataport types to start capturing your preprocessingpart of the workflow. - use the Number to String node to convert theSentimentRating and WebActivity columns- use the Capture Workflow End node with dataport types to end your preprocessing part of theworkflow Step 2: Capture Prediction Model- use the Capture Workflow Start node with dataport types to start capturing your prediction model- use the Decision Tree Predictor node for yourmodel predictions- use the Capture Workflow End node with dataport types to end your prediction model Step 3: Combine capturedWorkflows and Deploy- use the Workflow Combinernode to combine the preprocessingworkflow and the model predictionworkflow (HINT: the first part needsto be connected to the upper inputport)- use the Workflow Writer node todeploy your workflow Activity I: Create Model for Deployment - capture the preprocessing of your data and the model prediction using the Capture Workflow Start and Capture Workflow End nodes - combine your captured workflows using the Workflow Combiner - write/deploy your workflow using the Workflow Writer node ReadCurrentDetailData.tableCapturepreprocessingCapture modelDeploy workflow DecisionTree Learner Decision TreePredictor Table Reader Number To String Partitioning CaptureWorkflow Start CaptureWorkflow End CaptureWorkflow Start CaptureWorkflow End Workflow Combiner Workflow Writer

Nodes

Extensions

Links