Skip to content

Commit f76ea1b

Browse files
jjerphanjeremiedbb
andauthored
DOC Add more details regarding the improved efficiency in 1.1 and 1.2 (#25043)
Co-authored-by: Jérémie du Boisberranger <[email protected]>
1 parent 2459331 commit f76ea1b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

examples/release_highlights/plot_release_highlights_1_2_0.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@
7777
from sklearn.metrics import PredictionErrorDisplay
7878

7979
fig, axs = plt.subplots(nrows=1, ncols=2, figsize=(12, 5))
80-
PredictionErrorDisplay.from_estimator(
80+
_ = PredictionErrorDisplay.from_estimator(
8181
hist_no_interact, X, y, kind="actual_vs_predicted", ax=axs[0]
8282
)
83-
PredictionErrorDisplay.from_estimator(
83+
_ = PredictionErrorDisplay.from_estimator(
8484
hist_no_interact, X, y, kind="residual_vs_predicted", ax=axs[1]
8585
)
8686

@@ -89,7 +89,7 @@
8989
# results from :func:`~model_selection.learning_curve`.
9090
from sklearn.model_selection import LearningCurveDisplay
9191

92-
LearningCurveDisplay.from_estimator(
92+
_ = LearningCurveDisplay.from_estimator(
9393
hist_no_interact, X, y, cv=5, n_jobs=2, train_sizes=np.linspace(0.1, 1, 5)
9494
)
9595

@@ -120,10 +120,13 @@
120120
# Improved efficiency of many estimators
121121
# --------------------------------------
122122
# In version 1.1 the efficiency of many estimators relying on the computation of
123-
# pairwise distances was greatly improved for float64 dense input. In version 1.2,
124-
# the efficiency of these estimators was further improved for all combinations of
125-
# float32/float64 and dense/sparse input (for all metrics except euclidean). It
126-
# concerns essentially clustering, manifold learning and neighbor search algorithms.
127-
# A detailed list of the impacted estimators can be found in the
128-
# :ref:`changelog <changes_1_2>`. The main benefits are a reduced memory footprint
123+
# pairwise distances (essentially estimators related to clustering, manifold
124+
# learning and neighbors search algorithms) was greatly improved for float64
125+
# dense input. Efficiency improvement especially were a reduced memory footprint
129126
# and a much better scalability on multi-core machines.
127+
# In version 1.2, the efficiency of these estimators was further improved for all
128+
# combinations of dense and sparse inputs on float32 and float64 datasets, except
129+
# the sparse-dense and dense-sparse combinations for the Euclidean and Squared
130+
# Euclidean Distance metrics.
131+
# A detailed list of the impacted estimators can be found in the
132+
# :ref:`changelog <changes_1_2>`.

0 commit comments

Comments
 (0)