Hub
Pricing About
WorkflowWorkflow

Classification Model Evaluation using Giskard

Release 5.3GiskardClassification Model
knime profile image
Versionv1.0 KNIME AP 5.3 ReleaseLatest, created on 
Jul 10, 2024 11:30 AM
Drag & drop
Like
Download workflow
Workflow preview

This workflow uses the Giskard Scanner node to scan a machine-learning workflow for common weaknesses.

The idea of the Giskard Scanner node is to allow fine-tuning of your ML model while developing it in KNIME Analytics Platform. Hence, the example mimics a data scientist's different attempts and modifications to their models and workflows before putting them into production.

Additionally, it is also possible to use Giskard after the model is deployed in production. Workflow monitoring using Giskard allows the data scientist to be aware of issues with production data flowing into the model, such as data shift phenomena.

You can download and run the workflow directly in your KNIME Analytics Platform. We recommend using the latest version of KNIME AP for optimal performance.

The goal of the model is to predict the grade class of a group of students based on different features.

Workflow Steps

  1. Reading the Data

    • The data is embedded into the workflow, so you can just execute the node.

  2. Partitioning into Train and Test

    • The partitioning node splits the data into 70% training data and 30% test data, which is used later to evaluate the model with Giskard.

  3. Various Fine-Tuning ML Models Attempts

    • The workflow represents various moments of fine-tuning ML models to make clear how to use Giskard while developing your ML workflow in KNIME.

Attempt 1

  1. Model Training

    • Train a Random Forest classification model on the dataset using GradeClass as the target column.

  2. Capture Inference Workflow

    • The inference workflow is surrounded by the Capture Workflow Start and End nodes that extract the contained workflow snippet into a dedicated workflow port object.

    • The inference workflow uses the model predictor to create the classification output. Besides the predicted class, the predictor also outputs the class probabilities, which are used by Giskard.

  3. Evaluate Inference Workflow with Giskard

    • The Giskard Scanner node checks the inference workflow for common weaknesses in robustness, spurious correlation, performance, and overconfidence categories. Please refer to the workflow annotations for further details.

Attempt 2

  1. Model Training

    • Train a Random Forest classification model on the dataset using GradeClass as the target column. Based on previous learnings, remove Absence and Include GPA variables.

  2. Capture Inference Workflow

    • The same as in attempt 1.

  3. Evaluate Inference Workflow with Giskard

    • Please refer to the workflow annotations for further details.

Final Attempt

  1. Model Training

    • Train a Random Forest classification model on the dataset using GradeClass as the target column. Based on previous learnings, remove the GPA variable.

  2. Capture Inference Workflow

    • The captured workflow part includes some preprocessing operations, binning, and outliers handling. The inference workflow applies the preprocessing operations followed by the model predictor to create the classification output. In addition to the predicted class, the predictor also outputs the class probabilities, which are used by Giskard.

  3. Evaluate Inference Workflow with Giskard

    • Please refer to the workflow annotations for further details.

This workflow demonstrates how to fine-tune and evaluate ML models using the Giskard Scanner node in KNIME, ensuring robust and reliable models before deployment.

External resources

  • Giskard
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.3.0
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME Ensemble Learning WrappersTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME Giskard ExtensionTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME Integrated DeploymentTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME Statistics NodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime
  • Go to item
    KNIME ViewsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime profile image
    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits