Hub
  • Software
  • Blog
  • Forum
  • Events
  • Documentation
  • About KNIME
  • KNIME Hub
  • knime
  • Spaces
  • Examples
  • 00_Components
  • Model Interpretability
  • K-means LIME
ComponentComponent

K-means LIME

Last edited: 

Drag & drop
Like
Use or download
Copy short link
This is an implementation of the model explanation technique developed by H2O.ai called K-LIME using the KNIME H2O Machine Learning Integration. To find more informations about the K-LIME machine learning interpretability technique please refer to the H2O.ai documentation: h2o.ai/wp-content/uploads/2017/09/driverlessai/interpreting.html#k-lime The component allows to cluster input data and build local linear models to explain predictions of a complex black-box-like model. The optimal number of clusters is defined by the optimal value of R^2 value summed over all models in clusters. The number of linear models built is much lower than the corresponding number in the LIME algorithm, where a model is build in the neighbourhoud of each explanation instance. Thus, the algorithm is expected to be faster for large data samples. Note, that this implementation of K-LIME can not handle missing values and all rows with missing values will be dropped. Thus, no explanations for those will be available. If you want to get explanations for all input rows, please, fill missing values before fedding the data into the app. Also note, that all but the selected column with predictions will be used to interpret prediction. Therefore, you have to filter out all irrelevant columns as well as the original target column prioir to feeding a table to the input. Categorical features will be converted into numerical representation using One-Hot Encoding (OHE) (also called "dummy" or "binary"). Numerical features will be scaled as required by linear models. The only pre-processing steps that might be required from the user is to remove outliers and fill missing values, as those might bias surrogate models that are used by the algorithm.

Component details

Input ports
  1. Type: Table
    Input data
    Table with features and predictions.
Output ports
  1. Type: Table
    Predictions and feature contributions
    Original and surrogate predictions as well as individual feature contributions.
  2. Type: Table
    Surrogate predictions
    Cluster and global prediction per input row.

Used extensions & nodes

Created with KNIME Analytics Platform version 4.1.1
  • Go to item
    KNIME Core Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.1

  • Go to item
    KNIME Ensemble Learning Wrappers Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

  • Go to item
    KNIME H2O Machine Learning Integration Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.1

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

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

  • Go to item
    KNIME Optimization extension Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

  • Go to item
    KNIME Quick Forms Trusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.1

  1. Go to item
  2. Go to item
  3. Go to item
  4. Go to item
  5. Go to item
  6. Go to item

Legal

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

KNIME
Open for Innovation

KNIME AG
Hardturmstrasse 66
8005 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • E-Learning course
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • KNIME Open Source Story
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more on KNIME Server
© 2022 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Credits