Version 1.8#

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.8.dev0#

August 2025

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.

sklearn.calibration#

sklearn.compose#

sklearn.decomposition#

sklearn.ensemble#

sklearn.feature_extraction#

sklearn.gaussian_process#

sklearn.linear_model#

solver="newton-cholesky"`and `warm_start=True on multi-class problems, either

with fit_intercept=True or with penalty=None (both resulting in unpenalized parameters for the solver). The coefficients and intercepts of the last class as provided by warm start were partially wrongly overwritten by zero. By Christian Lorentzen #31866

  • API Change PassiveAggressiveClassifier and PassiveAggressiveRegressor are deprecated and will be removed in 1.10. Equivalent estimators are available with SGDClassifier and SGDRegressor, both of which expose the options learning_rate="pa1" and "pa2" as well as the new parameter PA_C for the aggressiveness parameter of the Passive-Aggressive-Algorithms. By Christian Lorentzen. #29097

  • API Change linear_model.SGDClassifier, linear_model.SGDRegressor, and linear_model.SGDOneClassSVM now deprecate negative values for the power_t parameter. Using a negative value will raise a warning in version 1.8 and will raise an error in version 1.10. A value in the range [0.0, inf) must be used instead. By Ritvi Alagusankar #31474

sklearn.metrics#

  • API Change metrics.cluster.entropy is deprecated and will be removed in v1.10. By Lucy Liu #31294

sklearn.multiclass#

sklearn.pipeline#

  • Fix pipeline.FeatureUnion now validates that all transformers return 2D outputs and raises an informative error when transformers return 1D outputs, preventing silent failures that previously produced meaningless concatenated results. By gguiomar. #31559

sklearn.preprocessing#

sklearn.utils#

` |Enhancement|`sklearn.utils._check_sample_weight`` now raises a clearer error message when the provided weights are neither a scalar nor a 1-D array-like of the same size as the input data. #31712 by Kapil Parekh. #31873

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.