SHAP
基于博弈论
官方文件:Welcome to the SHAP documentation — SHAP latest documentation
github地址:GitHub - shap/shap: A game theoretic approach to explain the output of any machine learning model.
1. 安装
SHAP can be installed from either PyPI or conda-forge:
pip install shap
or
conda install -c conda-forge shap
安装XGboost
conda install xgboost
jupyter中import如果报错
IProgress not found. Please update jupyter and ipywidgets. See Installation — Jupyter Widgets 8.1.2 documentationt
可能和没有ipywidgets
有关:
conda install ipywidgets
若仍未解决可参考这篇:(未尝试过)
解决报错ImportError: IProgress not found. Please update jupyter and ipywidgets.-CSDN博客