Skip to content

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)

Calls to .loo(..., "refit", ...) or .shapley(..., "refit", ...) that omit learner= or pass non-None distribution= or n_samples=.

Supply learner= and remove distribution= and n_samples=, or call the convenience method explainer.loco(X_val, y_val, learner=est).

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.