fippy/refit-incompatible-args
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| fippy | error | none, edit by hand | All versions |
In fippy.Explainer.loo() and shapley(), restriction="refit" requires learner= and raises ValueError if distribution= or n_samples= is passed.
res = explainer.loo(X_val, y_val, "refit", distribution="marginal", learner=est)res = explainer.loco(X_val, y_val, learner=est)What the rule reports
Section titled “What the rule reports”Calls to .loo(..., "refit", ...) or .shapley(..., "refit", ...) that omit learner= or pass non-None distribution= or n_samples=.
How to fix it
Section titled “How to fix it”Supply learner= and remove distribution= and n_samples=, or call the convenience method explainer.loco(X_val, y_val, learner=est).
Diagnostic message
Section titled “Diagnostic message”fippy restriction='refit' requires learner= and forbids distribution= and n_samples=, raising ValueError otherwise. Pass learner= without distribution= or n_samples=, or call explainer.loco().See all rules in the fippy pack.