Icon

02_​Partial_​Dependence_​Pre-processing

Partial Dependence Plot Example

This is an example for visualizing a partial dependence plot and an ICE curves plot in KNIME.
An XGBoost model was picked, but any model and its set of Learner and Predictor nodes can be used.

- Read the dataset about wines
- Partition the data in train and test
- Create the samples via the apposite shared component Partial Dependence Pre-processing
- Score the samples using the predictor node and a trained model
- Visualize the Partial Dependence/ICE Plot and customize it directly in the View (Execute > Right Click > Open View)
- Apply and Close to save the custom in-view settings

URL: Data Source: UCI - Wine Quality Data Set http://archive.ics.uci.edu/ml/datasets/wine+quality
URL: Christoph Molnar - Interpretable Machine Learning - A Guide for Making Black Box Models Explainable - 5.1 Partial Dependence Plot (PDP) https://christophm.github.io/interpretable-ml-book/pdp.html

This example workflows shows how to visualize a partial dependence plot and an ICE curves plot.An XGBoost model was picked, but any model and its set of Learner and Predictor nodes can be used.See View -> Description for more information about what the workflow does. samples the data red wine data top: 90% train setbottom: 10% test settrain the modelif quality > 5 : goodelse : badtop input: curves databottom input: test datacolors by ground truthdefines boundsfor samplingof "alcohol"Partial DependencePre-processing File Reader Partitioning XGBoost TreeEnsemble Learner XGBoost Predictor Rule Engine PartialDependence/ICE Plot Color Manager Edit Numeric Domain This example workflows shows how to visualize a partial dependence plot and an ICE curves plot.An XGBoost model was picked, but any model and its set of Learner and Predictor nodes can be used.See View -> Description for more information about what the workflow does. samples the data red wine datatop: 90% train setbottom: 10% test settrain the modelif quality > 5 : goodelse : badtop input: curves databottom input: test datacolors by ground truthdefines boundsfor samplingof "alcohol"Partial DependencePre-processing File Reader Partitioning XGBoost TreeEnsemble Learner XGBoost Predictor Rule Engine PartialDependence/ICE Plot Color Manager Edit Numeric Domain

Nodes

Extensions

Links