2.15.3
·
476 commits
to main
since this release
2.15.3 (2026-06-10)
Fix
- fix: Support scikit-learn 1.9 in ZeroShotClassification (#4790)
scikit-learn 1.9 raises "ValueError: Mix of label input types" when
classification metrics receive string y_true with numeric y_pred.
Zeroshot predictions are always integer indices into the candidate
labels, so string dataset labels are now mapped to their candidate
index before scoring. Unmappable string labels raise a clear error
instead of silently scoring 0.0, which is what scikit-learn < 1.9 did.
Removes the <1.9.0 pin introduced as a stopgap in #4783.
Fixes #4784
Co-authored-by: Kenneth Enevoldsen <kennethcenevoldsen@gmail.com> (5e8f0e1)