import lightgbm as lgb
import shap
model = lgb.LGBMClassifier().fit(X,y)
explainer = shap.Explainer(model)
shap_value = explainer(X)
shap.plots.waterfall(shap_value[100],max_display=40)
shap.plots.bar(shap_value,max_display=30)
import lightgbm as lgb
import shap
model = lgb.LGBMClassifier().fit(X,y)
explainer = shap.Explainer(model)
shap_value = explainer(X)
shap.plots.waterfall(shap_value[100],max_display=40)
shap.plots.bar(shap_value,max_display=30)