79717838

Date: 2025-07-28 20:16:45
Score: 1
Natty:
Report link

There is a work-around to access the underlying XGB Booster:

booster = model.get_booster()
dtest = xgb.DMatrix(X_test)
y_shap = booster.predict(dtest, pred_contribs=True)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MonsieurWave