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
Hi! I fit a multiclass classification XGBoost model and try to generate the plot of shapley values using shap.prep and then shap.plot.summary. However, I'm getting the following error when using shap.prep
One way this can happen is if there are extra arguments passed into your call to fastshap::explain that don't match a named argument. On https://github.com/bgreenwell/fastshap/blob/90a9cedb26ab217c98f9b917eaa8d0ba28270493/R/explain.R#L372 any unmatched arguments get absorbed into the ... , which likely is length one and foreach only uses the shortest iterator, so any subsequent columns (covariates) get dropped and thus there is a mismatch in the column lengths.
Hi! I fit a multiclass classification XGBoost model and try to generate the plot of shapley values using shap.prep and then shap.plot.summary. However, I'm getting the following error when using shap.prep
I was wondering whether there was a bug here. Thank you.
The text was updated successfully, but these errors were encountered: