fippy/shapley-parallel-n-jobs
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| fippy | error | none, edit by hand | All versions |
fippy.Explainer.shapley() checks if n_jobs != 1 and raises ValueError("n_jobs > 1 is not supported for shapley()").
res = explainer.shapley(X_val, y_val, "marginalize", distribution="marginal", n_samples=50, n_jobs=-1)res = explainer.shapley(X_val, y_val, "marginalize", distribution="marginal", n_samples=50)What the rule reports
Section titled “What the rule reports”Calls to .shapley(...) passing n_jobs= with any value other than 1.
How to fix it
Section titled “How to fix it”Remove n_jobs= or set n_jobs=1.
Diagnostic message
Section titled “Diagnostic message”fippy Explainer.shapley() raises ValueError when n_jobs != 1. Omit n_jobs or pass n_jobs=1.See all rules in the fippy pack.