shap_model = shap.TreeExplainer(model)
shap_values = shap_model.shap_values(data)
shap_values.shape[1] is equal to data.shape[1]
how could I get the value of intercept?
Sorry the docs are updated on github but not yet on the pip version. In
your example use shap_model.expected_value
On Sun, Jul 22, 2018 at 6:14 AM Nick notifications@github.com wrote:
how could I get the value of intercept?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/slundberg/shap/issues/171#issuecomment-406865807, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ADkTxax_j2iQCMdcf3E0WKyQ_MKKyl6wks5uJHrAgaJpZM4VZ_b2
.
Most helpful comment
Sorry the docs are updated on github but not yet on the pip version. In
your example use shap_model.expected_value
On Sun, Jul 22, 2018 at 6:14 AM Nick notifications@github.com wrote: