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>

Training






Prediction

Evaluation of ML Workflows with Giskard

  • This workflow aims to showcase the capabilities of the Giskard Scanner node to scan ML workflows for common weaknesses.

  • Our ML workflow consists of common preprocessing operations followed by a logistic regression.

  • To learn more about the workflow, click the left bar and check the description section.

Titanic dataset
CSV Reader
Split into trainand test
Partitioning
Normalizer
Logistic Regression Predictor
Logistic Regression Learner
Missing Value
Capture Workflow Start
Capture Workflow End
Open the viewto inspect theGiskard report
Giskard Scanner
Normalizer (Apply)
Missing Value (Apply)

Nodes

Extensions

Links