Version 1.6#

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.6.0#

In Development

Changes impacting many modules#

  • API Change utils.validation.validate_data is introduced and replaces previously private base.BaseEstimator._validate_data method. This is intended for third party estimator developers, who should use this function in most cases instead of utils.validation.check_array and utils.validation.check_X_y. #29696 by Adrin Jalali.

  • Enhancement __sklearn_tags__ was introduced for setting tags in estimators. More details in Estimator Tags. #22606 by Thomas Fan and #29677 by Adrin Jalali.

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.

Functions:

Classes:

Other

  • Support for the soon to be deprecated cupy.array_api module has been removed in favor of directly supporting the top level cupy module, possibly via the array_api_compat.cupy compatibility wrapper. #29639 by Olivier Grisel.

Metadata Routing#

The following models now support metadata routing in one or more of their methods. Refer to the Metadata Routing User Guide for more details.

Dropping support for building with setuptools#

From scikit-learn 1.6 onwards, support for building with setuptools has been removed. Meson is the only supported way to build scikit-learn, see Building from source for more details.

#29400 by Loïc Estève

Dropping official support for PyPy#

Due to limited maintainer resources and small number of users, official PyPy support has been dropped. Some parts of scikit-learn may still work but PyPy is not tested anymore in the scikit-learn Continuous Integration. #29128 by Loïc Estève.

Changelog#

sklearn.base#

sklearn.cluster#

  • API Change The copy parameter of cluster.Birch was deprecated in 1.6 and will be removed in 1.8. It has no effect as the estimator does not perform in-place operations on the input data. #29124 by Yao Xiao.

sklearn.compose#

sklearn.covariance#

sklearn.cross_decomposition#

sklearn.datasets#

  • Feature datasets.fetch_file allows downloading arbitrary data-file from the web. It handles local caching, integrity checks with SHA256 digests and automatic retries in case of HTTP errors. #29354 by Olivier Grisel.

sklearn.discriminant_analysis#

sklearn.ensemble#

sklearn.impute#

sklearn.linear_model#

sklearn.manifold#

sklearn.metrics#

sklearn.model_selection#

sklearn.neighbors#

sklearn.preprocessing#

sklearn.semi_supervised#

sklearn.tree#

sklearn.utils#

Code and documentation contributors

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

TODO: update at the time of the release.