API ReferenceΒΆ

This is the API reference for the shapiq package.

shapiq.interaction_values

Central output container for interaction scores produced by approximators and explainers.

shapiq.game

Base Game class wrapping any callable as a cooperative game for Shapley analysis.

shapiq.explainer

High-level interfaces for explaining ML model predictions.

shapiq.approximator

Algorithms for approximating Shapley values and interaction indices.

shapiq.imputer

Imputation strategies for handling missing feature coalitions in tabular explanations.

shapiq.game_theory

Game-theoretic concepts and algorithms.

shapiq.plot

Visualization functions for InteractionValues.

shapiq.datasets

Built-in datasets for benchmarking and examples.

shapiq.utils

Low-level utility functions for working with subsets, coalitions, and modules.

shapiq.tree

Tree-based explanation algorithms, including TreeSHAP-IQ.