Version 1.7#

Legend for changelogs

  • Major Feature something big that you couldn’t do before.

  • Feature something that you couldn’t do before.

  • Efficiency an existing feature now may not require as much computation or memory.

  • Enhancement a miscellaneous minor improvement.

  • Fix something that previously didn’t work as documented – or according to reasonable expectations – should now work.

  • API Change you will need to change your code to have the same effect in the future; or a feature will be removed in the future.

Version 1.7.dev0#

March 2025

Changes impacting many modules#

  • Sparse update: As part of the SciPy change from spmatrix to sparray, all internal use of sparse now supports both sparray and spmatrix. All manipulations of sparse objects should work for either spmatrix or sparray. This is pass 1 of a migration toward sparray (see SciPy migration to sparray By Dan Schult #30858

Support for Array API#

Additional estimators and functions have been updated to include support for all Array API compliant inputs.

See Array API support (experimental) for more details.

Metadata routing#

Refer to the Metadata Routing User Guide for more details.

sklearn.calibration#

sklearn.covariance#

  • Fix Support for n_samples == n_features in sklearn.covariance.MinCovDet has been restored. By Antony Lee. #30483

sklearn.datasets#

sklearn.decomposition#

sklearn.ensemble#

sklearn.inspection#

sklearn.linear_model#

sklearn.metrics#

sklearn.mixture#

  • Feature Added an attribute lower_bounds_ in the mixture.BaseMixture class to save the list of lower bounds for each iteration thereby providing insights into the convergence behavior of mixture models like mixture.GaussianMixture. By Manideep Yenugula #28559

  • Efficiency Simplified redundant computation when estimating covariances in GaussianMixture with a covariance_type="spherical" or covariance_type="diag". By Leonce Mekinda and Olivier Grisel #30414

  • Efficiency GaussianMixture now consistently operates at float32 precision when fitted with float32 data to improve training speed and memory efficiency. Previously, part of the computation would be implicitly cast to float64. By Olivier Grisel and Omar Salman. #30415

sklearn.model_selection#

sklearn.multioutput#

sklearn.neural_network#

sklearn.pipeline#

sklearn.preprocessing#

sklearn.svm#

sklearn.utils#

Enhancement - :func: resample now handles sample weights which allows

weighted resampling. #29907 by Shruti Nath and Olivier Grisel #29907

  • Fix In utils.estimator_checks we now enforce for binary classifiers a

    binary y by taking the minimum as the negative class instead of the first element, which makes it robust to y shuffling. It prevents two checks from wrongly failing on binary classifiers. By Antoine Baker. #30775

Code and documentation contributors

Thanks to everyone who has contributed to the maintenance and improvement of the project since version 1.7, including:

TODO: update at the time of the release.