Hub
Pricing About
ComponentComponent

Compute LIME

H
Draft Latest edits on 
Dec 5, 2019 2:36 PM
Drag & drop
Like
Use or download
This Component is able to create a Local Interpretable Model-agnostic Explanation (LIME) to explain the predictions of any machine learning model in KNIME. You have to use this component together with LIME Loop Start node from the KNIME Machine Learning Interpretability Extension. Please install KNIME H2O Machine Learning Integration. https://hub.knime.com/knime/extensions/org.knime.features.ext.h2o/latest The workflow within the Component will go through the following steps: 1. Using LASSO to select relevant features. 2. Training a local surrogate Generalized Linear Model (GLM) using Weighted Least Squares (WLS). 3. Output the coefficients of the local model able to explain the original instance prediction. More info about LIME at: homes.cs.washington.edu/~marcotcr/blog/lime

Component details

Input ports
  1. Type: Table
    Predicted Samples
    A table with a Double Type prediction column of the sampled instances. Such prediction column can be created scoring the LIME Loop Start top ouput table with the predictor node of your model. If your model is solving a classification task make sure to output a pobability column of Double Type.
  2. Type: Table
    Test Set Row Instances
    This table contains the data used to learn a local surrogate model including a weight column and it is produced by Loop Start node bottom port.
Output ports
  1. Type: Table
    Explanation Table
    A table containing the explanation. Each column with a feature column name holds the single value of the coefficient of the trained local surrogate linear model. Additionally the columns "Target", "Intercept" and "RMSE" are added. "Target" describes which prediction column of the orginal model is explained. "Intercept" shows the value of the intecept of the trained linear model. "RMSE" refers to the precision of the explanation. The lower, the better as it is computed using the weighted root mean squared error comparing the original predictions and the predictions created by the linear surrogate model.

Used extensions & nodes

Created with KNIME Analytics Platform version 4.1.0
  • Go to item
    KNIME CoreTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME H2O Machine Learning IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Math Expression (JEP)Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime
  • Go to item
    KNIME Quick FormsTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    knime

This component does not have nodes, extensions, nested components and related workflows

Legal

By using or downloading the component, 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