Skip to content

Commit 7a15f61

Browse files
committed
Pushing the docs to dev/ for branch: main, commit c1cfc4d4f36f9c00413e20d0ef85bed208a502ca
1 parent 3b79068 commit 7a15f61

File tree

1,375 files changed

+5049
-4815
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,375 files changed

+5049
-4815
lines changed
Binary file not shown.

Diff for: dev/_downloads/138e7c706c17949c3098ff8074b03ce7/plot_release_highlights_1_2_0.py

+34-6
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,31 @@
6868
)
6969
hist_no_interact.fit(X, y)
7070

71+
# %%
72+
# New and enhanced displays
73+
# -------------------------
74+
# :class:`~metrics.PredictionErrorDisplay` provides a way to analyze regression
75+
# models in a qualitative manner.
76+
import matplotlib.pyplot as plt
77+
from sklearn.metrics import PredictionErrorDisplay
78+
79+
fig, axs = plt.subplots(nrows=1, ncols=2, figsize=(12, 5))
80+
_ = PredictionErrorDisplay.from_estimator(
81+
hist_no_interact, X, y, kind="actual_vs_predicted", ax=axs[0]
82+
)
83+
_ = PredictionErrorDisplay.from_estimator(
84+
hist_no_interact, X, y, kind="residual_vs_predicted", ax=axs[1]
85+
)
86+
87+
# %%
88+
# :class:`~model_selection.LearningCurveDisplay` is now available to plot
89+
# results from :func:`~model_selection.learning_curve`.
90+
from sklearn.model_selection import LearningCurveDisplay
91+
92+
_ = LearningCurveDisplay.from_estimator(
93+
hist_no_interact, X, y, cv=5, n_jobs=2, train_sizes=np.linspace(0.1, 1, 5)
94+
)
95+
7196
# %%
7297
# Faster parser in :func:`~datasets.fetch_openml`
7398
# -----------------------------------------------
@@ -95,10 +120,13 @@
95120
# Improved efficiency of many estimators
96121
# --------------------------------------
97122
# In version 1.1 the efficiency of many estimators relying on the computation of
98-
# pairwise distances was greatly improved for float64 dense input. In version 1.2,
99-
# the efficiency of these estimators was further improved for all combinations of
100-
# float32/float64 and dense/sparse input (for all metrics except euclidean). It
101-
# concerns essentially clustering, manifold learning and neighbor search algorithms.
102-
# A detailed list of the impacted estimators can be found in the
103-
# :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
104126
# 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>`.

Diff for: dev/_downloads/21b82d82985712b5de6347f382c77c86/plot_partial_dependence.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
},
149149
"outputs": [],
150150
"source": [
151-
"print(\"Training interaction constraint HistGradientBoostingRegressor...\")\ntic = time()\nest_no_interactions = HistGradientBoostingRegressor(\n interaction_cst=[[i] for i in range(X_train.shape[1])]\n)\nest_no_interactions.fit(X_train, y_train)\nprint(f\"done in {time() - tic:.3f}s\")"
151+
"print(\"Training interaction constraint HistGradientBoostingRegressor...\")\ntic = time()\nest_no_interactions = HistGradientBoostingRegressor(interaction_cst=\"no_interactions\")\nest_no_interactions.fit(X_train, y_train)\nprint(f\"done in {time() - tic:.3f}s\")"
152152
]
153153
},
154154
{
Binary file not shown.

Diff for: dev/_downloads/bcd609cfe29c9da1f51c848e18b89c76/plot_partial_dependence.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,7 @@
270270

271271
print("Training interaction constraint HistGradientBoostingRegressor...")
272272
tic = time()
273-
est_no_interactions = HistGradientBoostingRegressor(
274-
interaction_cst=[[i] for i in range(X_train.shape[1])]
275-
)
273+
est_no_interactions = HistGradientBoostingRegressor(interaction_cst="no_interactions")
276274
est_no_interactions.fit(X_train, y_train)
277275
print(f"done in {time() - tic:.3f}s")
278276

Diff for: dev/_downloads/df1b185d030fd32d53b4b2303d64816c/plot_release_highlights_1_2_0.ipynb

+37-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,42 @@
5454
"from sklearn.datasets import load_diabetes\nfrom sklearn.ensemble import HistGradientBoostingRegressor\n\nX, y = load_diabetes(return_X_y=True, as_frame=True)\n\nhist_no_interact = HistGradientBoostingRegressor(\n interaction_cst=[[i] for i in range(X.shape[1])], random_state=0\n)\nhist_no_interact.fit(X, y)"
5555
]
5656
},
57+
{
58+
"cell_type": "markdown",
59+
"metadata": {},
60+
"source": [
61+
"## New and enhanced displays\n:class:`~metrics.PredictionErrorDisplay` provides a way to analyze regression\nmodels in a qualitative manner.\n\n"
62+
]
63+
},
64+
{
65+
"cell_type": "code",
66+
"execution_count": null,
67+
"metadata": {
68+
"collapsed": false
69+
},
70+
"outputs": [],
71+
"source": [
72+
"import matplotlib.pyplot as plt\nfrom sklearn.metrics import PredictionErrorDisplay\n\nfig, axs = plt.subplots(nrows=1, ncols=2, figsize=(12, 5))\n_ = PredictionErrorDisplay.from_estimator(\n hist_no_interact, X, y, kind=\"actual_vs_predicted\", ax=axs[0]\n)\n_ = PredictionErrorDisplay.from_estimator(\n hist_no_interact, X, y, kind=\"residual_vs_predicted\", ax=axs[1]\n)"
73+
]
74+
},
75+
{
76+
"cell_type": "markdown",
77+
"metadata": {},
78+
"source": [
79+
":class:`~model_selection.LearningCurveDisplay` is now available to plot\nresults from :func:`~model_selection.learning_curve`.\n\n"
80+
]
81+
},
82+
{
83+
"cell_type": "code",
84+
"execution_count": null,
85+
"metadata": {
86+
"collapsed": false
87+
},
88+
"outputs": [],
89+
"source": [
90+
"from sklearn.model_selection import LearningCurveDisplay\n\n_ = LearningCurveDisplay.from_estimator(\n hist_no_interact, X, y, cv=5, n_jobs=2, train_sizes=np.linspace(0.1, 1, 5)\n)"
91+
]
92+
},
5793
{
5894
"cell_type": "markdown",
5995
"metadata": {},
@@ -83,7 +119,7 @@
83119
"cell_type": "markdown",
84120
"metadata": {},
85121
"source": [
86-
"## Improved efficiency of many estimators\nIn version 1.1 the efficiency of many estimators relying on the computation of\npairwise distances was greatly improved for float64 dense input. In version 1.2,\nthe efficiency of these estimators was further improved for all combinations of\nfloat32/float64 and dense/sparse input (for all metrics except euclidean). It\nconcerns essentially clustering, manifold learning and neighbor search algorithms.\nA detailed list of the impacted estimators can be found in the\n`changelog <changes_1_2>`. The main benefits are a reduced memory footprint\nand a much better scalability on multi-core machines.\n\n"
122+
"## Improved efficiency of many estimators\nIn version 1.1 the efficiency of many estimators relying on the computation of\npairwise distances (essentially estimators related to clustering, manifold\nlearning and neighbors search algorithms) was greatly improved for float64\ndense input. Efficiency improvement especially were a reduced memory footprint\nand a much better scalability on multi-core machines.\nIn version 1.2, the efficiency of these estimators was further improved for all\ncombinations of dense and sparse inputs on float32 and float64 datasets, except\nthe sparse-dense and dense-sparse combinations for the Euclidean and Squared\nEuclidean Distance metrics.\nA detailed list of the impacted estimators can be found in the\n`changelog <changes_1_2>`.\n\n"
87123
]
88124
}
89125
],

Diff for: dev/_downloads/scikit-learn-docs.zip

75 KB
Binary file not shown.
-186 Bytes
1 Byte
-212 Bytes
-315 Bytes
-85 Bytes

Diff for: dev/_images/sphx_glr_plot_all_scaling_006.png

0 Bytes

Diff for: dev/_images/sphx_glr_plot_all_scaling_007.png

0 Bytes

Diff for: dev/_images/sphx_glr_plot_anomaly_comparison_001.png

-650 Bytes
-3 Bytes

Diff for: dev/_images/sphx_glr_plot_ard_001.png

-2 Bytes

Diff for: dev/_images/sphx_glr_plot_ard_thumb.png

5 Bytes
-1003 Bytes
-129 Bytes

Diff for: dev/_images/sphx_glr_plot_calibration_curve_002.png

116 Bytes
0 Bytes
0 Bytes

Diff for: dev/_images/sphx_glr_plot_cluster_comparison_001.png

35 Bytes
-25 Bytes

Diff for: dev/_images/sphx_glr_plot_coin_segmentation_001.png

-41 Bytes

Diff for: dev/_images/sphx_glr_plot_coin_segmentation_002.png

-126 Bytes

Diff for: dev/_images/sphx_glr_plot_coin_segmentation_003.png

32 Bytes
-13 Bytes

Diff for: dev/_images/sphx_glr_plot_color_quantization_003.png

115 Bytes
-716 Bytes
-151 Bytes
-634 Bytes
624 Bytes

Diff for: dev/_images/sphx_glr_plot_compare_methods_002.png

459 Bytes

Diff for: dev/_images/sphx_glr_plot_dict_face_patches_001.png

9 Bytes
43 Bytes

Diff for: dev/_images/sphx_glr_plot_digits_pipe_001.png

61 Bytes

Diff for: dev/_images/sphx_glr_plot_digits_pipe_thumb.png

21 Bytes
-230 Bytes
-139 Bytes

Diff for: dev/_images/sphx_glr_plot_face_recognition_003.png

0 Bytes
4 Bytes
2 Bytes
1.55 KB
9 Bytes
1 Byte
2 Bytes
2 Bytes
14 Bytes
26 Bytes
-111 Bytes
19 Bytes

Diff for: dev/_images/sphx_glr_plot_forest_iris_001.png

-16 Bytes

Diff for: dev/_images/sphx_glr_plot_forest_iris_thumb.png

-45 Bytes

Diff for: dev/_images/sphx_glr_plot_gmm_init_001.png

-45 Bytes

Diff for: dev/_images/sphx_glr_plot_gmm_init_thumb.png

2 Bytes

Diff for: dev/_images/sphx_glr_plot_gmm_pdf_001.png

-5 Bytes

Diff for: dev/_images/sphx_glr_plot_gmm_pdf_thumb.png

0 Bytes

Diff for: dev/_images/sphx_glr_plot_gpr_noisy_004.png

89 Bytes

Diff for: dev/_images/sphx_glr_plot_gpr_noisy_005.png

3 Bytes
4 Bytes
-4 Bytes
3.72 KB
-14 Bytes
1.86 KB
1.07 KB
676 Bytes
-11 Bytes
-36 Bytes
-31 Bytes
181 Bytes
442 Bytes
64 Bytes

Diff for: dev/_images/sphx_glr_plot_image_denoising_002.png

172 Bytes

Diff for: dev/_images/sphx_glr_plot_image_denoising_003.png

381 Bytes

Diff for: dev/_images/sphx_glr_plot_image_denoising_004.png

53 Bytes

Diff for: dev/_images/sphx_glr_plot_image_denoising_005.png

-173 Bytes

Diff for: dev/_images/sphx_glr_plot_image_denoising_006.png

-107 Bytes

Diff for: dev/_images/sphx_glr_plot_iris_dtc_001.png

-62 Bytes

Diff for: dev/_images/sphx_glr_plot_iris_dtc_002.png

-41 Bytes

Diff for: dev/_images/sphx_glr_plot_iris_dtc_thumb.png

-4 Bytes

Diff for: dev/_images/sphx_glr_plot_iris_exercise_001.png

-14 Bytes

Diff for: dev/_images/sphx_glr_plot_iris_exercise_003.png

0 Bytes

Diff for: dev/_images/sphx_glr_plot_iris_exercise_thumb.png

4 Bytes
1.22 KB
289 Bytes

Diff for: dev/_images/sphx_glr_plot_kernel_pca_003.png

-21 Bytes
284 Bytes
226 Bytes
27 Bytes
28 Bytes
-1 Bytes
-35 Bytes
40 Bytes
35 Bytes

Diff for: dev/_images/sphx_glr_plot_learning_curve_002.png

-2.66 KB

Diff for: dev/_images/sphx_glr_plot_learning_curve_003.png

911 Bytes

Diff for: dev/_images/sphx_glr_plot_linkage_comparison_001.png

-761 Bytes
4 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_002.png

-66 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_003.png

11 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_004.png

-119 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_005.png

-20 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_006.png

112 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_007.png

-665 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_008.png

-128 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_009.png

-73 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_010.png

-251 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_011.png

-16 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_012.png

-47 Bytes

Diff for: dev/_images/sphx_glr_plot_lle_digits_013.png

1 Byte

Diff for: dev/_images/sphx_glr_plot_lle_digits_014.png

-180 Bytes

Diff for: dev/_images/sphx_glr_plot_manifold_sphere_001.png

-1.29 KB

Diff for: dev/_images/sphx_glr_plot_manifold_sphere_thumb.png

61 Bytes

Diff for: dev/_images/sphx_glr_plot_mini_batch_kmeans_001.png

-222 Bytes
7 Bytes

Diff for: dev/_images/sphx_glr_plot_mlp_alpha_001.png

-820 Bytes

Diff for: dev/_images/sphx_glr_plot_mlp_alpha_thumb.png

-53 Bytes
-525 Bytes
739 Bytes
-3.41 KB
-332 Bytes

Diff for: dev/_images/sphx_glr_plot_multilabel_001.png

-30 Bytes

Diff for: dev/_images/sphx_glr_plot_multilabel_thumb.png

15 Bytes
-18 Bytes
5 Bytes

Diff for: dev/_images/sphx_glr_plot_nca_dim_reduction_003.png

-36 Bytes
-470 Bytes
-1.62 KB
188 Bytes

Diff for: dev/_images/sphx_glr_plot_prediction_latency_001.png

-1.09 KB

Diff for: dev/_images/sphx_glr_plot_prediction_latency_002.png

-273 Bytes

Diff for: dev/_images/sphx_glr_plot_prediction_latency_003.png

942 Bytes

Diff for: dev/_images/sphx_glr_plot_prediction_latency_004.png

1.19 KB
-396 Bytes

Diff for: dev/_images/sphx_glr_plot_random_dataset_001.png

468 Bytes

Diff for: dev/_images/sphx_glr_plot_random_dataset_thumb.png

247 Bytes
0 Bytes
13 Bytes
-212 Bytes
-336 Bytes
-7 Bytes
81 Bytes
625 Bytes
105 Bytes
68.7 KB
20.4 KB
1.72 KB
-263 Bytes
6 Bytes
0 Bytes
20 Bytes

Diff for: dev/_images/sphx_glr_plot_sgd_early_stopping_002.png

-12.7 KB
18 Bytes
-1 Bytes

Diff for: dev/_images/sphx_glr_plot_sparse_coding_001.png

-16 Bytes

Diff for: dev/_images/sphx_glr_plot_sparse_coding_thumb.png

-11 Bytes

Diff for: dev/_images/sphx_glr_plot_sparse_cov_001.png

314 Bytes

Diff for: dev/_images/sphx_glr_plot_sparse_cov_002.png

63 Bytes

Diff for: dev/_images/sphx_glr_plot_sparse_cov_thumb.png

250 Bytes

Diff for: dev/_images/sphx_glr_plot_stack_predictors_001.png

-992 Bytes

Diff for: dev/_images/sphx_glr_plot_stack_predictors_thumb.png

-19 Bytes
94 Bytes
-51 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_kernels_001.png

-13 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_kernels_thumb.png

5 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_margin_001.png

-34 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_margin_002.png

9 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_margin_thumb.png

5 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_regression_001.png

-10 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_regression_thumb.png

-8 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_scale_c_001.png

-7 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_scale_c_thumb.png

0 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_tie_breaking_001.png

5 Bytes

Diff for: dev/_images/sphx_glr_plot_svm_tie_breaking_thumb.png

2 Bytes

Diff for: dev/_images/sphx_glr_plot_swissroll_002.png

-109 Bytes

Diff for: dev/_images/sphx_glr_plot_swissroll_004.png

229 Bytes

Diff for: dev/_images/sphx_glr_plot_t_sne_perplexity_001.png

-1.54 KB

Diff for: dev/_images/sphx_glr_plot_t_sne_perplexity_thumb.png

-972 Bytes

Diff for: dev/_images/sphx_glr_plot_theilsen_001.png

-11 Bytes

Diff for: dev/_images/sphx_glr_plot_theilsen_002.png

-14 Bytes

Diff for: dev/_images/sphx_glr_plot_theilsen_thumb.png

-3 Bytes
6 Bytes
-1 Bytes

Diff for: dev/_images/sphx_glr_plot_transformed_target_004.png

-97 Bytes
-1 Bytes
4 Bytes
-32 Bytes

Diff for: dev/_sources/auto_examples/applications/plot_cyclical_feature_engineering.rst.txt

+1-1

Diff for: dev/_sources/auto_examples/applications/plot_digits_denoising.rst.txt

+10-1

Diff for: dev/_sources/auto_examples/applications/plot_face_recognition.rst.txt

+5-5

Diff for: dev/_sources/auto_examples/applications/plot_model_complexity_influence.rst.txt

+15-15

0 commit comments

Comments
 (0)