ModelOriented / shapviz

SHAP Plots in R
https://modeloriented.github.io/shapviz/
GNU General Public License v2.0
80 stars 14 forks source link

Handle single-row predictions for XGBoost #142

Closed mayer79 closed 3 months ago

mayer79 commented 3 months ago

Solves https://github.com/ModelOriented/shapviz/issues/141

mayer79 commented 3 months ago
remotes::install_github("ModelOriented/shapviz")

shapviz(xgb_model, X_pred = data_with_1_row) |> 
  sv_waterfall()

Should now work, thx for reporting!

CRAN is on vacation, so it will take 1-2 weeks until I can release it there.