Skip to content

fix(approximator): remove stale MSRBiased reference that breaks import#3

Merged
42logos merged 1 commit into
oddshap_approximatorfrom
fix/oddshap-init-msrbiased
Jun 10, 2026
Merged

fix(approximator): remove stale MSRBiased reference that breaks import#3
42logos merged 1 commit into
oddshap_approximatorfrom
fix/oddshap-init-msrbiased

Conversation

@42logos

@42logos 42logos commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Problem

MSRBiased is listed in SV_APPROXIMATORS and __all__ in src/shapiq/approximator/__init__.py, but it is never defined or imported anywhere in the package (leftover from a main merge — main itself no longer has it). Because SV_APPROXIMATORS = [..., MSRBiased, ...] is built at import time, simply running import shapiq.approximator raises NameError.

This blocks the OddSHAP reproduction notebook/example from importing, and — more importantly — once oddshap_approximator is merged into mmschlk:main (PR mmschlk#522), it would carry this dangling reference back into main and break the import there too.

Fix

Remove the two dangling MSRBiased references. One file, two deletions. import shapiq.approximator works again; no behavior change.

Verification

  • upstream/main and origin/main do not contain MSRBiased — this is branch-local only.
  • After this change, import shapiq.approximator succeeds and the full SV approximator list resolves.

MSRBiased was listed in SV_APPROXIMATORS and __all__ but never defined or
imported (leftover from a main merge), so importing shapiq.approximator raised
NameError. Removing the two dangling references restores the import.
@42logos 42logos merged commit 1b5019a into oddshap_approximator Jun 10, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant