In the LightGBM documentation it is stated that one can set predict_contrib=True to predict the SHAP-values.
How do we extract the SHAP-values (apart from using the shap package)?
I have tried
model = LGBM(objective="binary",is_unbalance=True,predict_contrib=True)
model.fit(X_train,y_train)
pred_shap = opt_model.predict(X_train) #Does not get SHAP-values
which does not seem to work