Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update doc string for pred_contrib #2116

Merged
merged 7 commits into from
Apr 19, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions python-package/lightgbm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2261,9 +2261,11 @@ def predict(self, data, num_iteration=None,

Note
----
If you want to get more explanation for your model's predictions using SHAP values
If you want to get more explanations for your model's predictions using SHAP values,
like SHAP interaction values,
you can install shap package (https://github.com/slundberg/shap).
you can install the shap package (https://github.com/slundberg/shap).
Note that unlike the shap package, with ``pred_contrib`` we return a matrix with an extra
column, where the last column is the expected value.

data_has_header : bool, optional (default=False)
Whether the data has header.
Expand Down