You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ExplainerError: Additivity check failed in TreeExplainer! Please ensure the data matrix you passed to the explainer is the same
shape that the model was trained on. If your data shape is correct then please report this on GitHub. Consider retrying with the
feature_perturbation='interventional' option. This check failed because for one of the samples the sum of the SHAP values was
-0.577556, while the model output was -0.540311. If this difference is acceptable you can set check_additivity=False to disable
this check.
I'm using it like this:
model = BoostRFE(regr_xgb, param_grid=param_dist,
min_features_to_select=10,
step=20,
importance_type='shap_importances',
n_iter=5
)
Any suggestion how to solve this?
The text was updated successfully, but these errors were encountered:
Hi, thanks for your feedback.
This error comes from shap. I think a possible cause could be this one.
With the information you reported it's hard to say more. You should clarify more about your X_train/X_valid to have a better view (some data samples to reproduce the error should be perfect)
For my dataset I'm getting this error:
I'm using it like this:
Any suggestion how to solve this?
The text was updated successfully, but these errors were encountered: