Skip to content

Commit

Permalink
DOC Add more details regarding the improved efficiency in 1.1 and 1.2 (
Browse files Browse the repository at this point in the history
…#25043)

Co-authored-by: Jérémie du Boisberranger <jeremiedbb@users.noreply.github.com>
  • Loading branch information
jjerphan and jeremiedbb committed Nov 25, 2022
1 parent 2459331 commit f76ea1b
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions examples/release_highlights/plot_release_highlights_1_2_0.py
Expand Up @@ -77,10 +77,10 @@
from sklearn.metrics import PredictionErrorDisplay

fig, axs = plt.subplots(nrows=1, ncols=2, figsize=(12, 5))
PredictionErrorDisplay.from_estimator(
_ = PredictionErrorDisplay.from_estimator(
hist_no_interact, X, y, kind="actual_vs_predicted", ax=axs[0]
)
PredictionErrorDisplay.from_estimator(
_ = PredictionErrorDisplay.from_estimator(
hist_no_interact, X, y, kind="residual_vs_predicted", ax=axs[1]
)

Expand All @@ -89,7 +89,7 @@
# results from :func:`~model_selection.learning_curve`.
from sklearn.model_selection import LearningCurveDisplay

LearningCurveDisplay.from_estimator(
_ = LearningCurveDisplay.from_estimator(
hist_no_interact, X, y, cv=5, n_jobs=2, train_sizes=np.linspace(0.1, 1, 5)
)

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

0 comments on commit f76ea1b

Please sign in to comment.