Open chorfung opened 4 years ago
From me, no. Not sure about others. PRs are welcomed. ;-)
I am interested in this too but I lack resources to implement it
Now, using .get_booster()
and transforming the data to pandas you can calculate shap with SparkXGBClassifier
or SparkXGBRegressor
.
explainer = shap.Explainer(pipeline.stages[1].get_booster())
shap_values = explainer(df.select(features).toPandas())
shap.plots.beeswarm(shap_values)
Versions:
Is there any plan to add SHAP value to the xgboost-spark?
thx