← Back to Pull requests

Adds WoodELF-IQ to shapiq #572

Closed
unknown closed this pull request without merging on Aug 20, 2026 18:05 UTC
View on GitHub
unknown unknown commented on Aug 11, 2026 16:24 UTC
Author

Motivation and Context

Use Woodelf to speedup shapiq's TreeExplainer.
On large datasets or on path dependent interaction values, Woodelf's computation is going to be used behinds the schemes.

The feature implement explain_X directly and uses Woodelf vectorized computation to compute the values on X rows in a single run.
On smaller datasets, TreeSHAPIQ is still used. We run experiments to discover the cross over between Woodelf and TreeSHAPIQ.
These experiments are summarized in the htmls below:

Path Dependent experiment:
https://ron-wettenstein.github.io/TreeBranchMarks/benchmarks/reports/woodelf_vs_shapiq_path_dependent_experiment.html

Interventional experiment:
https://ron-wettenstein.github.io/TreeBranchMarks/benchmarks/reports/woodelf_vs_shapiq_experiment

The current cross over is n*m >= 100 and n >= 100 where n is the length of X and m is the length of the background dataset

---

Public API Changes

  • No Public API changes

  • Yes, Public API changes (Details below)
  • TreeExplainer now support Banzhaf values
    The output format of the explain_X function was changed.

    ---

    How Has This Been Tested?


    Added 2 tests. Also run some sanity checks.

    ---

    Checklist

  • The changes have been tested locally.

  • Documentation has been updated (if the public API or usage changes).

  • An entry has been added to CHANGELOG.md (if relevant for users).

  • The code follows the project's style guidelines.

  • I have considered the impact of these changes on the public API.
  • ---

    Diff: 202 lines (+151 / -51) across 2 files Reviewer: ron-wettenstein Review duration: 13061m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 202 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.318
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #572"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.2% (MEDIUM) · Higher = larger blast radius
    36.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 14.3% · Safe to merge
    14.3%
    Repository