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

Fix docstring for npermutations in PermutationExplainer #4402

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion python/cuml/explainer/permutation_shap.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ class PermutationExplainer(SHAPBase):
CuPy, cuDF DataFrame/Series, NumPy ndarray and Pandas
DataFrame/Series.
npermutations : int (default = 10)
The l1 regularization to use for feature selection.
Number of times to cycle through all the features, re-evaluating
the model at each step. Each cycle evaluates the model function
2 * (# features + 1) times on a data matrix of (# background
data samples) rows. An exception to this is when
PermutationExplainer can avoid evaluating the model because a
feature's value is the same in X and the background dataset
(which is common for example with sparse features).
as_list : bool (default = True)
Set to True to return a list of arrays for multi-dimensional
models (like predict_proba functions) to match the SHAP package
Expand Down