---
title: "scikit-learn 1.9.1 Breaking Changes on PyPI | Since.dev"
description: "What each scikit-learn release removed, renamed or changed: 3,174 breaking changes in 16 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/scikit-learn
last_updated: 2026-12-04
---

# scikit-learn breaking changes

scikit-learn 1.9.1 (September 10, 2026) is its newest release with breaking changes, 55 of them. The first: Signature changed sklearn.compose.tests.test_column_transformer.check_recorded_metadata. Every breaking API change we have recorded in scikit-learn on PyPI: 3,174 breaking changes in 16 versions. Below, its 16 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.9.1`, released September 10, 2026. [Source repository](https://github.com/scikit-learn/scikit-learn)

Its 1.7.0 release requires [Python 3.10](https://since.dev/calendar/python/3.10.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.24.0](#v-0-24-0) to [1.9.1](#v-1-9-1): 2,257 breaking changes in 14 versions.
- From [0.23.0](#v-0-23-0) to [1.9.1](#v-1-9-1): 2,526 breaking changes in 15 versions.

## scikit-learn 1.9.1 breaking changes

scikit-learn 1.9.1, released September 10, 2026: 55 breaking changes.

- **Signature changed** `sklearn.compose.tests.test_column_transformer.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.datasets.tests.test_openml.test_fetch_openml_verify_checksum`  

Was def test_fetch_openml_verify_checksum(monkeypatch, as_frame, tmpdir, parser); now def test_fetch_openml_verify_checksum(monkeypatch, as_frame, tmpdir, parser, cache, recoverable). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.ensemble.tests.test_bagging.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.ensemble.tests.test_stacking.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.ensemble.tests.test_voting.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_compat.torch.fft.fftn`  

Was def fftn(x: Array, /, \*, s: Sequence\[int\] = None, axes: Sequence\[int\] = None, norm: Literal\['backward', 'ortho', 'forward'\] = 'backward', \*\*kwargs: object) -> Array; now def fftn(x: Array, /, \*, s: Sequence\[int\] | None = None, axes... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_compat.torch.fft.fftshift`  

Was def fftshift(x: Array, /, \*, axes: int | Sequence\[int\] = None, \*\*kwargs: object) -> Array; now def fftshift(x: Array, /, \*, axes: int | Sequence\[int\] | None = None, \*\*kwargs: object) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_compat.torch.fft.ifftn`  

Was def ifftn(x: Array, /, \*, s: Sequence\[int\] = None, axes: Sequence\[int\] = None, norm: Literal\['backward', 'ortho', 'forward'\] = 'backward', \*\*kwargs: object) -> Array; now def ifftn(x: Array, /, \*, s: Sequence\[int\] | None = None, axes... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_compat.torch.fft.ifftshift`  

Was def ifftshift(x: Array, /, \*, axes: int | Sequence\[int\] = None, \*\*kwargs: object) -> Array; now def ifftshift(x: Array, /, \*, axes: int | Sequence\[int\] | None = None, \*\*kwargs: object) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_compat.torch.fft.irfftn`  

Was def irfftn(x: Array, /, \*, s: Sequence\[int\] = None, axes: Sequence\[int\] = None, norm: Literal\['backward', 'ortho', 'forward'\] = 'backward', \*\*kwargs: object) -> Array; now def irfftn(x: Array, /, \*, s: Sequence\[int\] | None = None... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_compat.torch.fft.rfftn`  

Was def rfftn(x: Array, /, \*, s: Sequence\[int\] = None, axes: Sequence\[int\] = None, norm: Literal\['backward', 'ortho', 'forward'\] = 'backward', \*\*kwargs: object) -> Array; now def rfftn(x: Array, /, \*, s: Sequence\[int\] | None = None, axes... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.apply_where`  

Was def apply_where(cond: Array, args: Array | tuple\[Array, ...\], f1: Callable\[..., Array\], f2: Callable\[..., Array\] | None = None, /, \*, fill_value: Array | complex | None = None, xp: ModuleType | None = None) -> Array; now def... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.__init__`  

Was def \_\_init\_\_(self, x: Array, idx: SetIndex | Undef = \_undef, /) -> None; now def \_\_init\_\_(self, x: Array, idx: SetIndex | \_Undef = \_undef, /) -> None. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.add`  

Was def add(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def add(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.divide`  

Was def divide(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def divide(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.max`  

Was def max(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def max(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.min`  

Was def min(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def min(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.multiply`  

Was def multiply(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def multiply(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.power`  

Was def power(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def power(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.set`  

Was def set(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def set(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.at.subtract`  

Was def subtract(self, y: Array | complex, /, copy: bool | None = None, xp: ModuleType | None = None) -> Array; now def subtract(self, y: Array | complex, /, copy: bool | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.atleast_nd`  

Was def atleast_nd(x: Array, /, \*, ndim: int, xp: ModuleType | None = None) -> Array; now def atleast_nd(x: Array, /, \*, ndim: int, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.broadcast_shapes`  

Was def broadcast_shapes(\*shapes: tuple\[float | None, ...\]) -> tuple\[int | None, ...\]; now def broadcast_shapes(\*shapes: tuple\[float | None, ...\], xp: ArrayNamespace | None = None) -> tuple\[int | None, ...\]. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.cov`  

Was def cov(m: Array, /, \*, xp: ModuleType | None = None) -> Array; now def cov(m: Array, /, \*, axis: int = -1, correction: float = 1, fweights: Array | None = None, aweights: Array | None = None, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.create_diagonal`  

Was def create_diagonal(x: Array, /, \*, offset: int = 0, xp: ModuleType | None = None) -> Array; now def create_diagonal(x: Array, /, \*, offset: int = 0, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.default_dtype`  

Was def default_dtype(xp: ModuleType, kind: Literal\['real floating', 'complex floating', 'integral', 'indexing'\] = 'real floating', \*, device: Device | None = None) -> DType; now def default_dtype(xp: ArrayNamespace, kind: Literal\['real... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.expand_dims`  

Was def expand_dims(a: Array, /, \*, axis: int | tuple\[int, ...\] = (0), xp: ModuleType | None = None) -> Array; now def expand_dims(a: Array, /, \*, axis: int | tuple\[int, ...\] = (0), xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.isclose`  

Was def isclose(a: Array | complex, b: Array | complex, \*, rtol: float = 1e-05, atol: float = 1e-08, equal_nan: bool = False, xp: ModuleType | None = None) -> Array; now def isclose(a: Array | complex, b: Array | complex, \*, rtol: float =... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.kron`  

Was def kron(a: Array | complex, b: Array | complex, /, \*, xp: ModuleType | None = None) -> Array; now def kron(a: Array | complex, b: Array | complex, /, \*, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.lazy_apply`  

Was def lazy_apply(func: Callable\[P, Array | ArrayLike | Sequence\[Array | ArrayLike\]\], \*args: Array | complex | None, shape: tuple\[int | None, ...\] | Sequence\[tuple\[int | None, ...\]\] | None = None, dtype: DType | Sequence\[DType\] | None =... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.nan_to_num`  

Was def nan_to_num(x: Array | float | complex, /, \*, fill_value: int | float = 0.0, xp: ModuleType | None = None) -> Array; now def nan_to_num(x: Array | complex, /, \*, fill_value: float = 0.0, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.nunique`  

Was def nunique(x: Array, /, \*, xp: ModuleType | None = None) -> Array; now def nunique(x: Array, /, \*, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.one_hot`  

Was def one_hot(x: Array, /, num_classes: int, \*, dtype: DType | None = None, axis: int = -1, xp: ModuleType | None = None) -> Array; now def one_hot(x: Array, /, num_classes: int, \*, dtype: DType | None = None, axis: int = -1, xp... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.pad`  

Was def pad(x: Array, pad_width: int | tuple\[int, int\] | Sequence\[tuple\[int, int\]\], mode: Literal\['constant'\] = 'constant', \*, constant_values: complex = 0, xp: ModuleType | None = None) -> Array; now def pad(x: Array, pad_width: int |... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.setdiff1d`  

Was def setdiff1d(x1: Array | complex, x2: Array | complex, /, \*, assume_unique: bool = False, xp: ModuleType | None = None) -> Array; now def setdiff1d(x1: Array | complex, x2: Array | complex, /, \*, assume_unique: bool = False, xp... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.sinc`  

Was def sinc(x: Array, /, \*, xp: ModuleType | None = None) -> Array; now def sinc(x: Array, /, \*, xp: ArrayNamespace | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.testing.lazy_xp_function`  

Was def lazy_xp_function(func: Callable\[..., Any\], \*, allow_dask_compute: bool | int = False, jax_jit: bool = True, static_argnums: Deprecated = DEPRECATED, static_argnames: Deprecated = DEPRECATED) -> None; now def lazy_xp_function(func... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.externals.array_api_extra.testing.patch_lazy_xp_functions`  

Was def patch_lazy_xp_functions(request: pytest.FixtureRequest, monkeypatch: pytest.MonkeyPatch | None = None, \*, xp: ModuleType) -> contextlib.AbstractContextManager\[None\]; now def patch_lazy_xp_functions(request: pytest.FixtureRequest... [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.kernel_approximation.PolynomialCountSketch.__init__`  

Was def \_\_init\_\_(self, \*, gamma=1.0, degree=2, coef0=0, n_components=100, random_state=None); now def \_\_init\_\_(self, \*, gamma=1.0, degree=2, coef0=0.0, n_components=100, random_state=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.metrics.tests.test_classification.test_average_binary_jaccard_score`  

Was def test_average_binary_jaccard_score(recwarn); now def test_average_binary_jaccard_score(). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.metrics.tests.test_classification.test_multiclass_jaccard_score`  

Was def test_multiclass_jaccard_score(recwarn); now def test_multiclass_jaccard_score(). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.metrics.tests.test_classification.test_multilabel_jaccard_score`  

Was def test_multilabel_jaccard_score(recwarn); now def test_multilabel_jaccard_score(). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.model_selection.tests.test_search.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.model_selection.tests.test_validation.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.tests.metadata_routing_common.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.tests.metadata_routing_common.consuming_metric`  

Was def consuming_metric(y_pred, y_true, registry=None, \*\*kwargs); now def consuming_metric(y_pred, y_true, registry=None, scorer=None, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.tests.test_discriminant_analysis.test_lda_orthogonality`  

Was def test_lda_orthogonality(); now def test_lda_orthogonality(solver). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.tests.test_discriminant_analysis.test_qda_priors`  

Was def test_qda_priors(); now def test_qda_priors(solver). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.tests.test_discriminant_analysis.test_qda_store_covariance`  

Was def test_qda_store_covariance(); now def test_qda_store_covariance(solver). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)
- **Signature changed** `sklearn.tests.test_metadata_routing.check_recorded_metadata`  

Was def check_recorded_metadata(obj, method, parent, split_params=tuple(), \*\*kwargs); now def check_recorded_metadata(obj, method, parent, split_params=tuple(), preserves_metadata=True, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.9.1/)

And 5 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## scikit-learn 1.9.0 breaking changes

scikit-learn 1.9.0, released June 2, 2026: 319 breaking changes.

- **Signature changed** `sklearn.calibration.check_cv`  

Was def check_cv(cv=5, y=None, \*, classifier=False); now def check_cv(cv=5, y=None, \*, classifier=False, shuffle=False, random_state=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.calibration.get_namespace`  

Was def get_namespace(\*arrays, remove_none=True, remove_types=(str), xp=None); now def get_namespace(\*arrays, remove_none=True, remove_types=REMOVE_TYPES_DEFAULT, xp=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.calibration.get_namespace_and_device`  

Was def get_namespace_and_device(\*array_list, remove_none=True, remove_types=(str), xp=None); now def get_namespace_and_device(\*array_list, remove_none=True, remove_types=REMOVE_TYPES_DEFAULT, xp=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.calibration.HalfBinomialLoss.__init__`  

Was def \_\_init\_\_(self, sample_weight=None); now def \_\_init\_\_(self, sample_weight=None, xp=None, device=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.calibration.HalfMultinomialLoss.__init__`  

Was def \_\_init\_\_(self, sample_weight=None, n_classes=3); now def \_\_init\_\_(self, sample_weight=None, n_classes=3, xp=None, device=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.cluster.tests.test_hdbscan.fowlkes_mallows_score`  

Was def fowlkes_mallows_score(labels_true, labels_pred, \*, sparse='deprecated'); now def fowlkes_mallows_score(labels_true, labels_pred). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.cluster.tests.test_hdbscan.StandardScaler`  

Was class StandardScaler(OneToOneFeatureMixin, TransformerMixin, BaseEstimator); now class StandardScaler(CallbackSupportMixin, OneToOneFeatureMixin, TransformerMixin, BaseEstimator). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.cluster.tests.test_hierarchical.grid_to_graph`  

Was def grid_to_graph(n_x, n_y, n_z=1, \*, mask=None, return_as=sparse.coo_matrix, dtype=int); now def grid_to_graph(n_x, n_y, n_z=1, \*, mask=None, return_as=sparse.coo_array, dtype=int). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.cluster.tests.test_spectral.img_to_graph`  

Was def img_to_graph(img, \*, mask=None, return_as=sparse.coo_matrix, dtype=None); now def img_to_graph(img, \*, mask=None, return_as=sparse.coo_array, dtype=None). [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)
- **Signature changed** `sklearn.compose.ColumnTransformer.__init__`  

Was def \_\_init\_\_(self, transformers, \*, remainder='drop', sparse_threshold=0.3, n_jobs=None, transformer_weights=None, verbose=False, verbose_feature_names_out=True, force_int_remainder_cols='deprecated'); now def \_\_init\_\_(self... [pypi.org](https://pypi.org/project/scikit-learn/1.9.0/)

And 309 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## scikit-learn 1.8.0 breaking changes

scikit-learn 1.8.0, released December 10, 2025: 205 breaking changes.

- **Signature changed** `sklearn.base.check_array`  

Was def check_array(array, accept_sparse=False, \*, accept_large_sparse=True, dtype='numeric', order=None, copy=False, force_writeable=False, force_all_finite='deprecated', ensure_all_finite=None, ensure_non_negative=False, ensure_2d=True... [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.base.ParamsDict.__init__`  

Was def \_\_init\_\_(self, params=None, non_default=tuple()); now def \_\_init\_\_(self, \*, params=None, non_default=tuple(), estimator_class=None, doc_link=''). [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.calibration.column_or_1d`  

Was def column_or_1d(y, \*, dtype=None, warn=False, device=None); now def column_or_1d(y, \*, dtype=None, input_name='y', warn=False, device=None). [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.cluster.Birch.__init__`  

Was def \_\_init\_\_(self, \*, threshold=0.5, branching_factor=50, n_clusters=3, compute_labels=True, copy='deprecated'); now def \_\_init\_\_(self, \*, threshold=0.5, branching_factor=50, n_clusters=3, compute_labels=True). [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.cluster.HDBSCAN.__init__`  

Was def \_\_init\_\_(self, min_cluster_size=5, min_samples=None, cluster_selection_epsilon=0.0, max_cluster_size=None, metric='euclidean', metric_params=None, alpha=1.0, algorithm='auto', leaf_size=40, n_jobs=None... [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.cluster.tests.test_dbscan.pairwise_distances`  

Was def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite='deprecated', ensure_all_finite=None, \*\*kwds); now def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, ensure_all_finite=True... [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.cluster.tests.test_hierarchical.pairwise_distances`  

Was def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite='deprecated', ensure_all_finite=None, \*\*kwds); now def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, ensure_all_finite=True... [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.cluster.tests.test_k_means.pairwise_distances`  

Was def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite='deprecated', ensure_all_finite=None, \*\*kwds); now def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, ensure_all_finite=True... [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.cluster.tests.test_optics.pairwise_distances`  

Was def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite='deprecated', ensure_all_finite=None, \*\*kwds); now def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, ensure_all_finite=True... [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)
- **Signature changed** `sklearn.compose.tests.test_column_transformer.test_column_transformer_auto_memmap`  

Was def test_column_transformer_auto_memmap(); now def test_column_transformer_auto_memmap(global_random_seed). [pypi.org](https://pypi.org/project/scikit-learn/1.8.0/)

And 195 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## scikit-learn 1.7.1 breaking changes

scikit-learn 1.7.1, released July 18, 2025: 91 breaking changes.

- **Signature changed** `sklearn.externals.array_api_compat.cupy.asarray`  

Was def asarray(obj: Union\[ndarray, bool, int, float, NestedSequence\[bool | int | float\], SupportsBufferProtocol\], /, \*, dtype: Optional\[Dtype\] = None, device: Optional\[Device\] = None, copy: Optional\[bool\] = \_copy_default, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.cupy.astype`  

Was def astype(x: ndarray, dtype: Dtype, /, \*, copy: bool = True, device: Optional\[Device\] = None) -> ndarray; now def astype(x: Array, dtype: DType, /, \*, copy: bool = True, device: Optional\[Device\] = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.cupy.count_nonzero`  

Was def count_nonzero(x: ndarray, axis=None, keepdims=False) -> ndarray; now def count_nonzero(x: Array, axis=None, keepdims=False) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.dask.array.asarray`  

Was def asarray(obj: Union\[Array, bool, int, float, NestedSequence\[bool | int | float\], SupportsBufferProtocol\], /, \*, dtype: Optional\[Dtype\] = None, device: Optional\[Device\] = None, copy: Optional\[Union\[bool, np.\_CopyMode\]\] = None... [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.dask.array.astype`  

Was def astype(x: Array, dtype: Dtype, /, \*, copy: bool = True, device: Optional\[Device\] = None) -> Array; now def astype(x: Array, dtype: DType, /, \*, copy: py_bool = True, device: Device | None = None) -> Array. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.dask.array.linalg.qr`  

Was def qr(x: Array, mode: Literal\['reduced', 'complete'\] = 'reduced', \*\*kwargs) -> QRResult; now def qr(x: \_Array, mode: Literal\['reduced', 'complete'\] = 'reduced', \*\*kwargs: object) -> QRResult. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.dask.array.linalg.svdvals`  

Was def svdvals(x: Array) -> Array; now def svdvals(x: \_Array) -> \_Array. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.device`  

Was def device(x: Array, /) -> Device; now def device(x: \_ArrayApiObj, /) -> Device. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.is_array_api_obj`  

Was def is_array_api_obj(x: object) -> bool; now def is_array_api_obj(x: object) -> TypeIs\[\_ArrayApiObj\]. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)
- **Signature changed** `sklearn.externals.array_api_compat.is_dask_array`  

Was def is_dask_array(x: object) -> bool; now def is_dask_array(x: object) -> TypeIs\[da.Array\]. [pypi.org](https://pypi.org/project/scikit-learn/1.7.1/)

And 81 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## scikit-learn 1.7.0 breaking changes

scikit-learn 1.7.0, released June 5, 2025: 269 breaking changes.

- **Removed**  

This version supports Python 3.10 to 3.13, so code running on older Python versions must upgrade Python before installing it. [github.com](https://github.com/scikit-learn/scikit-learn/releases/tag/1.7.0)
- **Signature changed** `sklearn.base.BaseEstimator`  

Was class BaseEstimator(\_HTMLDocumentationLinkMixin, \_MetadataRequester); now class BaseEstimator(ReprHTMLMixin, \_HTMLDocumentationLinkMixin, \_MetadataRequester). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.calibration.BaseEstimator`  

Was class BaseEstimator(\_HTMLDocumentationLinkMixin, \_MetadataRequester); now class BaseEstimator(ReprHTMLMixin, \_HTMLDocumentationLinkMixin, \_MetadataRequester). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.calibration.CalibrationDisplay.from_estimator`  

Was @classmethod def from_estimator(cls, estimator, X, y, \*, n_bins=5, strategy='uniform', pos_label=None, name=None, ref_line=True, ax=None, \*\*kwargs); now @classmethod def from_estimator(cls, estimator, X, y, \*, n_bins=5... [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.calibration.CalibrationDisplay.from_predictions`  

Was @classmethod def from_predictions(cls, y_true, y_prob, \*, n_bins=5, strategy='uniform', pos_label=None, name=None, ref_line=True, ax=None, \*\*kwargs); now @classmethod def from_predictions(cls, y_true, y_prob, \*, n_bins=5... [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.cluster.FeatureAgglomeration.inverse_transform`  

Was def inverse_transform(self, X=None, \*, Xt=None); now def inverse_transform(self, X). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.cluster.tests.test_bicluster.BaseEstimator`  

Was class BaseEstimator(\_HTMLDocumentationLinkMixin, \_MetadataRequester); now class BaseEstimator(ReprHTMLMixin, \_HTMLDocumentationLinkMixin, \_MetadataRequester). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.cluster.tests.test_hdbscan.fowlkes_mallows_score`  

Was def fowlkes_mallows_score(labels_true, labels_pred, \*, sparse=False); now def fowlkes_mallows_score(labels_true, labels_pred, \*, sparse='deprecated'). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.cluster.tests.test_mean_shift.test_parallel`  

Was def test_parallel(global_dtype); now def test_parallel(global_dtype, global_random_seed). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)
- **Signature changed** `sklearn.cluster.tests.test_optics.test_extract_dbscan`  

Was def test_extract_dbscan(global_dtype); now def test_extract_dbscan(global_dtype, global_random_seed). [pypi.org](https://pypi.org/project/scikit-learn/1.7.0/)

And 259 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## scikit-learn 1.6.0 breaking changes

scikit-learn 1.6.0, released December 9, 2024: 243 breaking changes.

- **Removed**  

This version supports Python 3.9 to 3.13, so Python 3.8 is no longer supported. [github.com](https://github.com/scikit-learn/scikit-learn/releases/tag/1.6.0)
- **Signature changed** `sklearn.base.check_array`  

Was def check_array(array, accept_sparse=False, \*, accept_large_sparse=True, dtype='numeric', order=None, copy=False, force_writeable=False, force_all_finite=True, ensure_2d=True, allow_nd=False, ensure_min_samples=1... [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.calibration.CalibratedClassifierCV.__init__`  

Was def \_\_init\_\_(self, estimator=None, \*, method='sigmoid', cv=None, n_jobs=None, ensemble=True); now def \_\_init\_\_(self, estimator=None, \*, method='sigmoid', cv=None, n_jobs=None, ensemble='auto'). [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.calibration.column_or_1d`  

Was def column_or_1d(y, \*, dtype=None, warn=False); now def column_or_1d(y, \*, dtype=None, warn=False, device=None). [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.calibration.cross_val_predict`  

Was def cross_val_predict(estimator, X, y=None, \*, groups=None, cv=None, n_jobs=None, verbose=0, fit_params=None, params=None, pre_dispatch='2\*n_jobs', method='predict'); now def cross_val_predict(estimator, X, y=None, \*, groups=None... [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.cluster.Birch.__init__`  

Was def \_\_init\_\_(self, \*, threshold=0.5, branching_factor=50, n_clusters=3, compute_labels=True, copy=True); now def \_\_init\_\_(self, \*, threshold=0.5, branching_factor=50, n_clusters=3, compute_labels=True, copy='deprecated'). [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.cluster.FeatureAgglomeration`  

Was class FeatureAgglomeration(ClassNamePrefixFeaturesOutMixin, AgglomerativeClustering, AgglomerationTransform); now class FeatureAgglomeration(ClassNamePrefixFeaturesOutMixin, AgglomerationTransform, AgglomerativeClustering). [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.cluster.FeatureAgglomeration.__init_subclass__`  

Was def \_\_init_subclass\_\_(cls, \*\*kwargs); now def \_\_init_subclass\_\_(cls, auto_wrap_output_keys=('transform'), \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.cluster.tests.test_dbscan.pairwise_distances`  

Was def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite=True, \*\*kwds); now def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite='deprecated', ensure_all_finite=None... [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)
- **Signature changed** `sklearn.cluster.tests.test_hierarchical.pairwise_distances`  

Was def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite=True, \*\*kwds); now def pairwise_distances(X, Y=None, metric='euclidean', \*, n_jobs=None, force_all_finite='deprecated', ensure_all_finite=None... [pypi.org](https://pypi.org/project/scikit-learn/1.6.0/)

And 233 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Older versions

10 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### scikit-learn 1.5.2 breaking changes

scikit-learn 1.5.2, released September 11, 2024: 2 breaking changes.

- **Signature changed** `sklearn.utils.tests.test_array_api.test_average`  

Was def test_average(array_namespace, device, dtype_name, weights, axis, normalize, expected); now def test_average(array_namespace, device\_, dtype_name, weights, axis, normalize, expected). [pypi.org](https://pypi.org/project/scikit-learn/1.5.2/)
- **Signature changed** `sklearn.utils.tests.test_array_api.test_count_nonzero`  

Was def test_count_nonzero(array_namespace, device, dtype_name, csr_container, axis, sample_weight_type); now def test_count_nonzero(array_namespace, device\_, dtype_name, csr_container, axis, sample_weight_type). [pypi.org](https://pypi.org/project/scikit-learn/1.5.2/)

### scikit-learn 1.5.1 breaking changes

scikit-learn 1.5.1, released July 3, 2024: 13 breaking changes.

- **Signature changed** `sklearn.base.check_array`  

Was def check_array(array, accept_sparse=False, \*, accept_large_sparse=True, dtype='numeric', order=None, copy=False, force_all_finite=True, ensure_2d=True, allow_nd=False, ensure_min_samples=1, ensure_min_features=1, estimator=None... [pypi.org](https://pypi.org/project/scikit-learn/1.5.1/)
- **Signature changed** `sklearn.base.check_X_y`  

Was def check_X_y(X, y, accept_sparse=False, \*, accept_large_sparse=True, dtype='numeric', order=None, copy=False, force_all_finite=True, ensure_2d=True, allow_nd=False, multi_output=False, ensure_min_samples=1, ensure_min_features=1... [pypi.org](https://pypi.org/project/scikit-learn/1.5.1/)

And 11 more in this version.

### scikit-learn 1.5.0 breaking changes

scikit-learn 1.5.0, released May 21, 2024: 184 breaking changes.

- **Signature changed** `sklearn.calibration.LinearSVC.__init__`  

Was def \_\_init\_\_(self, penalty='l2', loss='squared_hinge', \*, dual='warn', tol=0.0001, C=1.0, multi_class='ovr', fit_intercept=True, intercept_scaling=1, class_weight=None, verbose=0, random_state=None, max_iter=1000); now def... [pypi.org](https://pypi.org/project/scikit-learn/1.5.0/)
- **Signature changed** `sklearn.calibration.MethodMapping.add`  

Was def add(self, \*, callee, caller); now def add(self, \*, caller, callee). [pypi.org](https://pypi.org/project/scikit-learn/1.5.0/)

And 182 more in this version.

### scikit-learn 1.4.1.post1 breaking changes

scikit-learn 1.4.1.post1, released February 16, 2024: 7 breaking changes.

- **Signature changed** `sklearn.ensemble.tests.test_voting.test_multilabel`  

Was def test_multilabel(); now def test_multilabel(container_type). [pypi.org](https://pypi.org/project/scikit-learn/1.4.1.post1/)
- **Signature changed** `sklearn.inspection.tests.test_permutation_importance.test_permutation_importance_correlated_feature_regression`  

Was def test_permutation_importance_correlated_feature_regression(n_jobs, max_samples); now def test_permutation_importance_correlated_feature_regression(n_jobs, max_samples, sample_weight). [pypi.org](https://pypi.org/project/scikit-learn/1.4.1.post1/)

And 5 more in this version.

### scikit-learn 1.4.0 breaking changes

scikit-learn 1.4.0, released January 18, 2024: 636 breaking changes.

- **Signature changed** `sklearn.base.BaseEstimator`  

Was class BaseEstimator(\_MetadataRequester); now class BaseEstimator(\_HTMLDocumentationLinkMixin, \_MetadataRequester). [pypi.org](https://pypi.org/project/scikit-learn/1.4.0/)
- **Signature changed** `sklearn.base.ClusterMixin.fit_predict`  

Was def fit_predict(self, X, y=None); now def fit_predict(self, X, y=None, \*\*kwargs). [pypi.org](https://pypi.org/project/scikit-learn/1.4.0/)

And 634 more in this version.

### scikit-learn 1.3.2 breaking changes

scikit-learn 1.3.2, released October 23, 2023: 3 breaking changes.

- **Signature changed** `sklearn.datasets.fetch_openml`  

Was def fetch_openml(name: Optional\[str\] = None, \*, version: Union\[str, int\] = 'active', data_id: Optional\[int\] = None, data_home: Optional\[str\] = None, target_column: Optional\[Union\[str, List\]\] = 'default-target', cache: bool = True... [pypi.org](https://pypi.org/project/scikit-learn/1.3.2/)
- **Signature changed** `sklearn.datasets.tests.test_base.test_data_home`  

Was def test_data_home(data_home); now def test_data_home(path_container, data_home). [pypi.org](https://pypi.org/project/scikit-learn/1.3.2/)

And 1 more in this version.

### scikit-learn 1.3.1 breaking changes

scikit-learn 1.3.1, released September 21, 2023: 11 breaking changes.

- **Signature changed** `sklearn.compose.tests.test_target.assert_no_warnings`  

Was def assert_no_warnings(func, \*args, \*\*kw); now from sklearn.utils.\_testing import assert_no_warnings. [pypi.org](https://pypi.org/project/scikit-learn/1.3.1/)
- **Signature changed** `sklearn.datasets.fetch_openml`  

Was def fetch_openml(name: Optional\[str\] = None, \*, version: Union\[str, int\] = 'active', data_id: Optional\[int\] = None, data_home: Optional\[str\] = None, target_column: Optional\[Union\[str, List\]\] = 'default-target', cache: bool = True... [pypi.org](https://pypi.org/project/scikit-learn/1.3.1/)

And 9 more in this version.

### scikit-learn 1.0 breaking changes

scikit-learn 1.0, released September 24, 2021: 219 breaking changes.

- **Signature changed** `sklearn.cluster.affinity_propagation`  

Was def affinity_propagation(S, \*, preference=None, convergence_iter=15, max_iter=200, damping=0.5, copy=True, verbose=False, return_n_iter=False, random_state='warn'); now def affinity_propagation(S, \*, preference=None... [pypi.org](https://pypi.org/project/scikit-learn/1.0/)
- **Signature changed** `sklearn.cluster.AffinityPropagation.__init__`  

Was def \_\_init\_\_(self, \*, damping=0.5, max_iter=200, convergence_iter=15, copy=True, preference=None, affinity='euclidean', verbose=False, random_state='warn'); now def \_\_init\_\_(self, \*, damping=0.5, max_iter=200, convergence_iter=15... [pypi.org](https://pypi.org/project/scikit-learn/1.0/)

And 217 more in this version.

### scikit-learn 0.24.0 breaking changes

scikit-learn 0.24.0, released December 22, 2020: 269 breaking changes.

- **Signature changed** `sklearn.calibration.CalibratedClassifierCV`  

Was class CalibratedClassifierCV(BaseEstimator, ClassifierMixin, MetaEstimatorMixin); now class CalibratedClassifierCV(ClassifierMixin, MetaEstimatorMixin, BaseEstimator). [pypi.org](https://pypi.org/project/scikit-learn/0.24.0/)
- **Signature changed** `sklearn.calibration.CalibratedClassifierCV.__init__`  

Was def \_\_init\_\_(self, base_estimator=None, \*, method='sigmoid', cv=None); now def \_\_init\_\_(self, base_estimator=None, \*, method='sigmoid', cv=None, n_jobs=None, ensemble=True). [pypi.org](https://pypi.org/project/scikit-learn/0.24.0/)

And 267 more in this version.

### scikit-learn 0.23.0 breaking changes

scikit-learn 0.23.0, released May 12, 2020: 648 breaking changes.

- **Configuration changed**  

This version supports Python versions 3.6 to 3.8. Users on other Python versions should check compatibility before upgrading. [github.com](https://github.com/scikit-learn/scikit-learn/releases/tag/0.23.0)
- **Signature changed** `sklearn.calibration.CalibratedClassifierCV.__init__`  

Was def \_\_init\_\_(self, base_estimator=None, method='sigmoid', cv=None); now def \_\_init\_\_(self, base_estimator=None, \*, method='sigmoid', cv=None). [pypi.org](https://pypi.org/project/scikit-learn/0.23.0/)

And 646 more in this version.

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
