Hub
Pricing About
WorkflowWorkflow

H2O Isolation Forest for Outlier Detection Explained by Shapley Values

H2OMachine learningIsolation ForestOutlierAnomaly
+2
paolotamag profile image
VersionlatestLatest, created on 
Oct 24, 2023 2:50 PM
Drag & drop
Like
Download workflow
Workflow preview
This tutorial shows how to train an H2O Model in KNIME. We will train an Isolation Forest Model to detect frauds, i.e. outliers or anomalies 1. Prepare: Load the data and import the resulting KNIME Table to H2O. 2. Learn: We learn the Isolation Forest Model using the H2O Isolation Forest Learner. We want H2O to build 100 trees. All other model parameters are H2Os defaults. 3. Predict: Make predictions on the same data using your model(s). In the output there will be the predictions (normalized anomaly score) and mean lengths of the predicted decision tree paths.For further processing we convert the H2O Frame back to table. 4. Classify: If we know that about 5 percent of our data rows are anomalies, we can calculate the 95th quantile. This quantile can be used as a threshold by the Rule Engine node to classify each row either as an anomaly or not. 5. Explain: We use Shapley Values to explain only the ones predicted as anomalies/outliers.

External resources

  • Interpretable Machine Learning - A Guide for Making Black Box Models Explainable. - Christoph Molnar - 2019-12-12
  • H2O Isolation Forest documentation
Loading deploymentsLoading ad hoc jobs

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 Machine Learning Interpretability ExtensionTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 4.1.0

    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