Version 1.5

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.5.0

In Development

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:

Support for building with Meson

Meson is now supported as a build backend, see Building with Meson for more details.

#28040 by Loïc Estève

TODO Fill more details before the 1.5 release, when the Meson story has settled down.

Metadata Routing

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

Metadata Routing

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

Changelog

sklearn.cluster

  • Fix Create copy of precomputed sparse matrix within the fit method of OPTICS to avoid in-place modification of the sparse matrix. #28491 by Thanh Lam Dang.

sklearn.compose

sklearn.datasets

sklearn.decomposition

  • Enhancement PCA now automatically selects the ARPACK solver for sparse inputs when svd_solver="auto" instead of raising an error. #28498 by Thanh Lam Dang.

sklearn.dummy

sklearn.ensemble

sklearn.feature_extraction

sklearn.feature_selection

sklearn.impute

sklearn.linear_model

sklearn.manifold

sklearn.metrics

sklearn.model_selection

  • Enhancement CV splitters that ignores the group parameter now raises a warning when groups are passed in to split. #28210 by

  • Fix the cv_results_ attribute (of model_selection.GridSearchCV) now returns masked arrays of the appropriate NumPy dtype, as opposed to always returning dtype object. #28352 by Marco Gorelli.

  • Fix sklearn.model_selection.train_test_score works with Array API inputs. Previously indexing was not handled correctly leading to exceptions when using strict implementations of the Array API like CuPY. #28407 by Tim Head <betatim>.

sklearn.multioutput

  • Enhancement chain_method parameter added to :class:``multioutput.ClassifierChain. #27700 by Lucy Liu.

sklearn.pipeline

  • Feature pipeline.FeatureUnion can now use the verbose_feature_names_out attribute. If True, get_feature_names_out will prefix all feature names with the name of the transformer that generated that feature. If False, get_feature_names_out will not prefix any feature names and will error if feature names are not unique. #25991 by Jiawei Zhang.

sklearn.preprocessing

sklearn.tree

  • Enhancement Plotting trees in matplotlib via tree.plot_tree now show a “True/False” label to indicate the directionality the samples traverse given the split condition. #28552 by Adam Li.

Code and documentation contributors

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

TODO: update at the time of the release.