Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOC update changelog for 1.4.1 release #28413

Merged
merged 4 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 30 additions & 22 deletions doc/whats_new/v1.4.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ Metadata Routing
DataFrame Support
-----------------

- |Enhancement| Pandas and Polars dataframe are validated directly without ducktyping
checks. :pr:`28195` by `Thomas Fan`_.
- |Enhancement| |Fix| Pandas and Polars dataframe are validated directly without
ducktyping checks.
:pr:`28195` by `Thomas Fan`_.

Changes impacting all modules
-----------------------------
Changes impacting many modules
------------------------------

- Partial revert of :pr:`28191` to avoid a performance regression for estimators
relying on euclidean pairwise computation with sparse matrices. The impacted
estimators are:
- |Efficiency| |Fix| Partial revert of :pr:`28191` to avoid a performance regression for
estimators relying on euclidean pairwise computation with
sparse matrices. The impacted estimators are:

- :func:`sklearn.metrics.pairwise_distances_argmin`
- :func:`sklearn.metrics.pairwise_distances_argmin_min`
Expand All @@ -66,6 +67,15 @@ Changes impacting all modules
columns of the returned dataframe.
:pr:`28262` by :user:`Guillaume Lemaitre <glemaitre>`.

- |Fix| When users try to use a method in :class:`~ensemble.StackingClassifier`,
:class:`~ensemble.StackingClassifier`, :class:`~ensemble.StackingClassifier`,
:class:`~feature_selection.SelectFromModel`, :class:`~feature_selection.RFE`,
:class:`~semi_supervised.SelfTrainingClassifier`,
:class:`~multiclass.OneVsOneClassifier`, :class:`~multiclass.OutputCodeClassifier` or
:class:`~multiclass.OneVsRestClassifier` that their sub-estimators don't implement,
the `AttributeError` now reraises in the traceback.
:pr:`28167` by :user:`Stefanie Senger <StefanieSenger>`.

Metadata Routing
----------------

Expand Down Expand Up @@ -134,44 +144,42 @@ Changelog

- |Fix| make :class:`preprocessing.FunctionTransformer` more lenient and overwrite
output column names with the `get_feature_names_out` in the following cases:

- the input and output column names remain the same (happen when using NumPy `ufunc`);
- the input column names are numbers;
- the output will be set to Pandas or Polars dataframe.

(i) the input and output column names remain the same (happen when using NumPy
`ufunc`); (ii) the input column names are numbers; (iii) the output will be set to
Pandas or Polars dataframe.
:pr:`28241` by :user:`Guillaume Lemaitre <glemaitre>`.

- |Fix| :class:`preprocessing.FunctionTransformer` now also warns when `set_output`
is called with `transform="polars"` and `func` does not return a Polars dataframe or
`feature_names_out` is not specified.
:pr:`28263` by :user:`Guillaume Lemaitre <glemaitre>`.

- |Fix| :class:`preprocessing.TargetEncoder` no longer fails when
`target_type="continuous"` and the input is read-only. In particular, it now
works with pandas copy-on-write mode enabled.
:pr:`28233` by :user:`John Hopfensperger <s-banach>`.

:mod:`sklearn.tree`
...................

- |Fix| :class:`tree.DecisionTreeClassifier` and
:class:`tree.DecisionTreeRegressor` are handling missing values properly. The internal
criterion was not initialize when no missing values were present in the data, leading
criterion was not initialized when no missing values were present in the data, leading
to potentially wrong criterion values.
:pr:`28295` by :user:`Guillaume Lemaitre <glemaitre>` and
:pr:`28327` by :user:`Adam Li <adam2392>`.

:mod:`sklearn.utils`
....................

- |Enhancement| |Fix| :func:`utils.metaestimators.available_if` now reraises the error
from the `check` function as the cause of the `AttributeError`.
:pr:`28198` by `Thomas Fan`_.

- |Fix| :func:`utils._safe_indexing` now raises a `ValueError` when `X` is a Python list
and `axis=1`, as documented in the docstring.
:pr:`28222` by :user:`Guillaume Lemaitre <glemaitre>`.


:mod:`sklearn.preprocessing`
............................

- |Fix| :class:`preprocessing.TargetEncoder` no longer fails when
`target_type="continuous"` and the input is read-only. In particular, it now
works with pandas copy-on-write mode enabled.
:pr:`28233` by :user:`John Hopfensperger <s-banach>`.

.. _changes_1_4:

Version 1.4.0
Expand Down
18 changes: 0 additions & 18 deletions doc/whats_new/v1.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,24 +129,6 @@ Changelog
- |Enhancement| :term:`CV splitters <CV splitter>` that ignores the group parameter now
raises a warning when groups are passed in to :term:`split`. :pr:`28210` by

:mod:`sklearn.utils`
....................

- |Enhancement| :func:`utils.metaestimators.available_if` now reraises the error from
the `check` function as the cause of the `AttributeError`. :pr:`28198` by
`Thomas Fan`_.

Multiple modules
................
- |Fix| When users try to use a method in :class:`~ensemble.StackingClassifier`,
:class:`~ensemble.StackingClassifier`, :class:`~ensemble.StackingClassifier`,
:class:`~feature_selection.SelectFromModel`, :class:`~feature_selection.RFE`,
:class:`~semi_supervised.SelfTrainingClassifier`,
:class:`~multiclass.OneVsOneClassifier`, :class:`~multiclass.OutputCodeClassifier` or
:class:`~multiclass.OneVsRestClassifier` that their sub-estimators don't implement,
the `AttributeError` now reraises in the Traceback. :pr:`28167` by :user:`Stefanie
Senger <StefanieSenger>`.

.. rubric:: Code and documentation contributors

Thanks to everyone who has contributed to the maintenance and improvement of
Expand Down