Hub
Pricing About
NodeNode / Predictor

TreeSHAP Gradient Boosted Trees

Community NodesTreeSHAPStreamable
Drag & drop
Like

SHAP (SHapley Additive exPlanations) is a game theoretic approach to explain the output of any machine learning model. It connects optimal credit allocation with local explanations using the classic Shapley values from game theory and their related extensions. While SHAP can explain the output of any machine learning model, Lundberg and his collaborators have developed a high-speed exact algorithm for tree ensemble methods [1] , [2] .

Usage

The Tree SHAP Gradient Boosted Trees Predictor is used as a substitute to the Gradient Boosted Trees Predictor. Simply replace every Gradient Boosted Trees Predictor with this node to get started. If you are using a different tree based method, consider the other nodes in this package.

Interpretation

The beautiful thing about SHAP values is the intuitive interpretation. Every model has an expected output, the average prediction. The model prediction for a data row is the expected output plus the summation of SHAP values. This leads to intuitive explanations, for example in predictive maintenance "The high production output over the last three months contributed +20% probability that the machine breaks down in the next month.".

Enterprise Support

If you need help integrating explainable machine learning methods in your company, please contact me at morriskurz@gmail.com

Credits

All credits to the original research and development of the C++ and Python code go to Lundberg and his collaborators.

Node details

Input ports
  1. Type: Gradient Boosting Model
    Gradient Boosted Trees Model
    The output of the Gradient Boosted Trees Learner.
  2. Type: Table
    Input data
    Data to be predicted and explained.
Output ports
  1. Type: Table
    Explanation output
    The input data along with prediction columns and corresponding SHAP values.

Extension

The TreeSHAP Gradient Boosted Trees node is part of this extension:

  1. Go to item

Related workflows & nodes

  1. Go to item
  2. Go to item
  3. Go to item

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