Skip to main content

ibreakdown - model agnostic explanations with interactions

Project description

ibreakdown

https://travis-ci.com/jettify/ibreakdown.svg?branch=master https://codecov.io/gh/jettify/ibreakdown/branch/master/graph/badge.svg https://img.shields.io/pypi/pyversions/ibreakdown.svg https://img.shields.io/pypi/v/ibreakdown.svg

ibreakdown is model agnostic predictions explainer with interactions support, library can show contribution of each feature in your prediction value.

SHAP or LIME consider only local additive feature attributions, when ibreakdown also evaluates local feature interactions.

Algorithm

Algorithm is based on ideas describe in paper “iBreakDown: Uncertainty of Model Explanations for Non-additive Predictive Models” https://arxiv.org/abs/1903.11420 and reference implementation in R (iBreakDown)

Intuition behind algorithm is following:

The algorithm works in a similar spirit as SHAP or Break Down but is not
restricted to additive effects. The intuition is the following:

1. Calculate a single-step additive contribution for each feature.
2. Calculate a single-step contribution for every pair of features. Subtract additive contribution to assess the interaction specific contribution.
3. Order interaction effects and additive effects in a list that is used to determine sequential contributions.

This simple intuition may be generalized into higher order interactions.

In depth explanation can be found in algorithm authors free book: Predictive Models: Explore, Explain, and Debug https://pbiecek.github.io/PM_VEE/iBreakDown.html

Features

  • Supports predictions explanations for classification and regression

  • Easy to use API.

  • Works with pandas and numpy

  • Support interactions between features

Installation

Installation process is simple, just:

$ pip install ibreakdown

Requirements

CHANGES

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibreakdown-0.0.1a3.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file ibreakdown-0.0.1a3.tar.gz.

File metadata

  • Download URL: ibreakdown-0.0.1a3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for ibreakdown-0.0.1a3.tar.gz
Algorithm Hash digest
SHA256 d28e292c3e14a96a27288b2de4a60411d5e5e6a09468d36549009846477f88f3
MD5 88fa70197b480a54f8e4bbccc3e926c2
BLAKE2b-256 c2331ebe296746a37d9d4072573c40cb7e1589e31d129a2614456421dab89063

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page