带交互作用的ibreakdown模型不可知论解释

ibreakdown的Python项目详细描述


ibreakdown公司

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

ibreakdown是具有交互支持的模型无关预测解释器, 库可以显示每个特征在您的预测值中的贡献。在

SHAPLIMEibreakdown还评估本地特性交互。在

算法

算法基于论文“iBreakDown:模型的不确定性”中描述的思想 非加性预测模型“https://arxiv.org/abs/1903.11420RiBreakDown)中的引用实现

算法背后的直觉如下:

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.

深入的解释可以在算法作者免费书籍中找到: 预测模型:探索、解释和调试https://pbiecek.github.io/PM_VEE/iBreakDown.html

简单示例

# model = RandomForestClassifier(...)explainer=ClassificationExplainer(model)classes=['Deceased','Survived']explainer.fit(X_train,columns,classes)exp=explainer.explain(observation)exp.print()

请查看完整的泰坦尼克号示例:https://github.com/jettify/ibreakdown/blob/master/examples/titanic.py

^{pr2}$

特点

  • 支持分类和回归的预测解释
  • 易于使用的API。在
  • pandasnumpy
  • 支持功能之间的交互

安装

安装过程简单,只需:

$ pip install ibreakdown

要求

变更

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java OutOfMemoryError以及如何使运行继续   java树映射内存使用率   使用带有java spark的javascript获取api的挂起承诺状态(POST请求)   java Android:存储用户单击的CardView   输入了有关拖动的java信息   单元测试中的java DecimalFormat(“·#,##0”)前缀   来自客户端的java超时webservice调用   java未使用的超类变量   如何在Java中的参数提示中强制执行整数限制   启动期间Tomcat中出现java错误:找不到DB名称   java Marshall/Unmarshall地图   一个类在另一个类中的java访问变量   如何在java中对字符数组的文本进行对齐?   从jenkins运行时,使用selenium上传excel文件的java不起作用   java将double转换为BigInteger   java Android键盘问题与按键释放   旋转java在两个旋转矩形之间的碰撞检测   在TestNG中执行时,XML中出现java启动错误无法继续执行测试