Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

交互作用のSHAP

交互作用を計算できるようにしたSHAP

実装は shapiqパッケージ

from shapiq import TreeExplainer

explainer = TreeExplainer(
    model,
    max_order=2,      # 2次相互作用まで
    index="k-SII"     # Shapley interaction index の種類
)

interaction_values = explainer.explain(x)
References
  1. Muschalik, M., Fumagalli, F., Hammer, B., & Hüllermeier, E. (2024). Beyond TreeSHAP: Efficient Computation of Any-Order Shapley Interactions for Tree Ensembles. Proceedings of the AAAI Conference on Artificial Intelligence, 38(13), 14388–14396. 10.1609/aaai.v38i13.29352