Skip to content

Add support scikit-learn 1.9.0#54

Open
Gnpd wants to merge 4 commits into
mainfrom
sklearn-1.9-compat
Open

Add support scikit-learn 1.9.0#54
Gnpd wants to merge 4 commits into
mainfrom
sklearn-1.9-compat

Conversation

@Gnpd

@Gnpd Gnpd commented Jul 3, 2026

Copy link
Copy Markdown
Owner
  • .github/workflows/sklearn-compat.yml: added sklearn-version: '1.9.0' to the matrix.
  • openmodels/serializers/sklearn/sklearn_serializer.py: sklearn 1.9 added a new fit-time private attribute _effective_probability on SVM estimators, which predict() now depends on internally. Added it to ATTRIBUTE_EXCEPTIONS for SVR, NuSVR, SVC, and NuSVC so it round-trips through serialize/deserialize, without this, predict() on a deserialized SVR/NuSVR raised AttributeError.
  • test/test_classification.py and test/test_regression.py: sklearn 1.9 fully removed the deprecated base_estimator constructor argument on ClassifierChain/RegressorChain in favor of estimator (already the pattern used elsewhere in test_others.py).

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