Icon

Evaluation of ML Workflows with Giskard

<p></p><p>This workflow uses the <strong>Giskard Scanner</strong> node to scan a machine learning workflow for common weaknesses.</p><p>You can download and run the workflow directly in your KNIME Analytics Platform. For optimal performance, we recommend using the latest version of KNIME AP.</p><p></p><p>Workflow steps</p><ol><li><p><strong>Reading the data</strong></p><ul><li><p>The data is embedded into the workflow so you can just execute the node.</p></li></ul></li><li><p><strong>Partition into train and test</strong></p><ul><li><p>The partitioning node is used to split the data into 70% training data and 30% test data that is used later to evaluate the model with Giskard.</p></li></ul></li><li><p><strong>Preprocessing</strong></p><ul><li><p>Remove missing values by replacing missing strings with '?' and using the mean for numerical columns.</p></li><li><p>Z-score normalize numerical columns for more stable logistic regression results.</p></li></ul></li><li><p><strong>Model training</strong></p><ul><li><p>Train a logistic regression model on the dataset using the non-ID columns as features and the survived column as target.</p></li></ul></li><li><p><strong>Capture inference workflow</strong></p><ul><li><p>The inference workflow is surrounded by the <strong>Capture Workflow Start</strong> and <strong>End</strong> nodes that extract the contained workflow snippet into a dedicated workflow port object.</p></li><li><p>The inference workflow applies the preprocessing operations followed by the model predictor to create the classification output. Besides the predicted class, the predictor also outputs the class probabilities which are used by Giskard.</p></li></ul></li><li><p><strong>Evalute inference workflow with Giskard</strong></p><ul><li><p>The <strong>Giskard Scanner</strong> node checks the inference workflow for common weaknesses in the categories robustness, spurious correlation, performance and overconfidence.</p></li></ul></li></ol><p>Data used in this workflow:</p><ul><li><p>Titanic - Machine Learning from Disaster. Retrieved from https://www.kaggle.com/c/titanic</p></li></ul>

Nodes

Extensions

Links