在jupyter book
运行代码片段
import xgboost
import shap
shap.initjs()
shap.force_plot(explainer.expected_value, shap_values[0,:], X.iloc[0,:]
在jupyter book
运行代码片段
import xgboost
import shap
shap.initjs()
shap.force_plot(explainer.expected_value, shap_values[0,:], X.iloc[0,:]