Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f0669ce

Browse files
committed
Highlight multiclass logistic regression with the newton-cholesky solver
1 parent 244a126 commit f0669ce

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

examples/release_highlights/plot_release_highlights_1_6_0.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,27 @@
9393
# user specified validation sets. This feature is released early to collect feedback
9494
# from third-party libraries who might benefit from it.
9595

96+
# %%
97+
# Multiclass support for `LogisticRegression(solver="newton-cholesky")`
98+
# ---------------------------------------------------------------------
99+
#
100+
# The `"newton-cholesky"` solver (originally introduced in scikit-learn version
101+
# 1.2) was previously limited to binary
102+
# :class:`~linear_model.LogisticRegression` and some other generalized linear
103+
# regression estimators (namely :class:`~linear_model.PoissonRegressor`,
104+
# :class:`~linear_model.GammaRegressor` and
105+
# :class:`~linear_model.TweedieRegressor`).
106+
#
107+
# This new release includes support for multiclass (multinomial)
108+
# :class:`~linear_model.LogisticRegression`.
109+
#
110+
# This solver is particularly useful when the number of features is small to
111+
# medium. It has been empirically shown to converge more reliably and faster
112+
# than other solvers on some medium sized datasets with one-hot encoded
113+
# categorical features as can be seen in the `benchmark results of the
114+
# pull-request
115+
# <https://github.com/scikit-learn/scikit-learn/pull/28840#issuecomment-2065368727>`_.
116+
96117
# %%
97118
# Missing value support for Extra Trees
98119
# -------------------------------------

0 commit comments

Comments
 (0)