Fix broken imports left over from the BBSE/LEIP commit

quapy/classification/__init__.py imported a labelshift module that doesn't exist
anywhere in the repo (and nothing else references it), breaking `import quapy`
entirely; the import is removed.

quapy/method/aggregative.py imported a nonexistent `_liep` module instead of the
actual file, _liep_draft.py, which itself never got a LEIP class added (only
helper functions such as leip()). Guards the import so LEIP degrades to an
"not available" placeholder, like the other optional neural methods, instead of
crashing the whole package. test_leip/test_leip_fixed_tau still fail as a result;
finishing LEIP is left for a follow-up.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Alejandro Moreo Fernandez 2026-09-08 14:47:13 +02:00
parent 89548d3a8b
commit 2a50fe902c
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,3 @@
from . import calibration
from . import labelshift
from . import methods
from . import svmperf

View File

@ -2218,9 +2218,11 @@ KDEyML = _kdey.KDEyML
KDEyHD = _kdey.KDEyHD
KDEyCS = _kdey.KDEyCS
from . import _liep
LEIP = _liep.LEIP
try:
from . import _liep_draft as _liep
LEIP = _liep.LEIP
except AttributeError:
LEIP = "LEIP is not available (incomplete implementation in _liep_draft.py)"
# ---------------------------------------------------------------