Skip to content

Commit 994ed00

Browse files
committed
Pushing the docs to dev/ for branch: main, commit fe7c4176828af5231f526e76683fb9bdb9ea0367
1 parent 4efa6fd commit 994ed00

File tree

1,519 files changed

+5968
-5968
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,519 files changed

+5968
-5968
lines changed
Binary file not shown.

dev/_downloads/02a1306a494b46cc56c930ceec6e8c4a/plot_species_kde.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<http://rob.schapire.net/papers/ecolmod.pdf>`_
3434
S. J. Phillips, R. P. Anderson, R. E. Schapire - Ecological Modelling,
3535
190:231-259, 2006.
36-
""" # noqa: E501
36+
"""
3737

3838
# Authors: The scikit-learn developers
3939
# SPDX-License-Identifier: BSD-3-Clause
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/2402de18d671ce5087e3760b2540184f/plot_grid_search_stats.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
},
124124
"outputs": [],
125125
"source": [
126-
"model_1_scores = model_scores.iloc[0].values # scores of the best model\nmodel_2_scores = model_scores.iloc[1].values # scores of the second-best model\n\ndifferences = model_1_scores - model_2_scores\n\nn = differences.shape[0] # number of test sets\ndf = n - 1\nn_train = len(list(cv.split(X, y))[0][0])\nn_test = len(list(cv.split(X, y))[0][1])\n\nt_stat, p_val = compute_corrected_ttest(differences, df, n_train, n_test)\nprint(f\"Corrected t-value: {t_stat:.3f}\\nCorrected p-value: {p_val:.3f}\")"
126+
"model_1_scores = model_scores.iloc[0].values # scores of the best model\nmodel_2_scores = model_scores.iloc[1].values # scores of the second-best model\n\ndifferences = model_1_scores - model_2_scores\n\nn = differences.shape[0] # number of test sets\ndf = n - 1\nn_train = len(next(iter(cv.split(X, y)))[0])\nn_test = len(next(iter(cv.split(X, y)))[1])\n\nt_stat, p_val = compute_corrected_ttest(differences, df, n_train, n_test)\nprint(f\"Corrected t-value: {t_stat:.3f}\\nCorrected p-value: {p_val:.3f}\")"
127127
]
128128
},
129129
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/3692f2475b52d40c3632818c00ff5b52/plot_sgdocsvm_vs_ocsvm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
benefits of such an approximation in terms of computation time but rather to
1818
show that we obtain similar results on a toy dataset.
1919
20-
""" # noqa: E501
20+
"""
2121

2222
# Authors: The scikit-learn developers
2323
# SPDX-License-Identifier: BSD-3-Clause
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/7c8070aa163e648367101a22133c5711/plot_forest_hist_grad_boosting_comparison.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
},
106106
"outputs": [],
107107
"source": [
108-
"import plotly.colors as colors\nimport plotly.express as px\nfrom plotly.subplots import make_subplots\n\nfig = make_subplots(\n rows=1,\n cols=2,\n shared_yaxes=True,\n subplot_titles=[\"Train time vs score\", \"Predict time vs score\"],\n)\nmodel_names = [result[\"model\"] for result in results]\ncolors_list = colors.qualitative.Plotly * (\n len(model_names) // len(colors.qualitative.Plotly) + 1\n)\n\nfor idx, result in enumerate(results):\n cv_results = result[\"cv_results\"].round(3)\n model_name = result[\"model\"]\n param_name = list(param_grids[model_name].keys())[0]\n cv_results[param_name] = cv_results[\"param_\" + param_name]\n cv_results[\"model\"] = model_name\n\n scatter_fig = px.scatter(\n cv_results,\n x=\"mean_fit_time\",\n y=\"mean_test_score\",\n error_x=\"std_fit_time\",\n error_y=\"std_test_score\",\n hover_data=param_name,\n color=\"model\",\n )\n line_fig = px.line(\n cv_results,\n x=\"mean_fit_time\",\n y=\"mean_test_score\",\n )\n\n scatter_trace = scatter_fig[\"data\"][0]\n line_trace = line_fig[\"data\"][0]\n scatter_trace.update(marker=dict(color=colors_list[idx]))\n line_trace.update(line=dict(color=colors_list[idx]))\n fig.add_trace(scatter_trace, row=1, col=1)\n fig.add_trace(line_trace, row=1, col=1)\n\n scatter_fig = px.scatter(\n cv_results,\n x=\"mean_score_time\",\n y=\"mean_test_score\",\n error_x=\"std_score_time\",\n error_y=\"std_test_score\",\n hover_data=param_name,\n )\n line_fig = px.line(\n cv_results,\n x=\"mean_score_time\",\n y=\"mean_test_score\",\n )\n\n scatter_trace = scatter_fig[\"data\"][0]\n line_trace = line_fig[\"data\"][0]\n scatter_trace.update(marker=dict(color=colors_list[idx]))\n line_trace.update(line=dict(color=colors_list[idx]))\n fig.add_trace(scatter_trace, row=1, col=2)\n fig.add_trace(line_trace, row=1, col=2)\n\nfig.update_layout(\n xaxis=dict(title=\"Train time (s) - lower is better\"),\n yaxis=dict(title=\"Test R2 score - higher is better\"),\n xaxis2=dict(title=\"Predict time (s) - lower is better\"),\n legend=dict(x=0.72, y=0.05, traceorder=\"normal\", borderwidth=1),\n title=dict(x=0.5, text=\"Speed-score trade-off of tree-based ensembles\"),\n)"
108+
"import plotly.colors as colors\nimport plotly.express as px\nfrom plotly.subplots import make_subplots\n\nfig = make_subplots(\n rows=1,\n cols=2,\n shared_yaxes=True,\n subplot_titles=[\"Train time vs score\", \"Predict time vs score\"],\n)\nmodel_names = [result[\"model\"] for result in results]\ncolors_list = colors.qualitative.Plotly * (\n len(model_names) // len(colors.qualitative.Plotly) + 1\n)\n\nfor idx, result in enumerate(results):\n cv_results = result[\"cv_results\"].round(3)\n model_name = result[\"model\"]\n param_name = next(iter(param_grids[model_name].keys()))\n cv_results[param_name] = cv_results[\"param_\" + param_name]\n cv_results[\"model\"] = model_name\n\n scatter_fig = px.scatter(\n cv_results,\n x=\"mean_fit_time\",\n y=\"mean_test_score\",\n error_x=\"std_fit_time\",\n error_y=\"std_test_score\",\n hover_data=param_name,\n color=\"model\",\n )\n line_fig = px.line(\n cv_results,\n x=\"mean_fit_time\",\n y=\"mean_test_score\",\n )\n\n scatter_trace = scatter_fig[\"data\"][0]\n line_trace = line_fig[\"data\"][0]\n scatter_trace.update(marker=dict(color=colors_list[idx]))\n line_trace.update(line=dict(color=colors_list[idx]))\n fig.add_trace(scatter_trace, row=1, col=1)\n fig.add_trace(line_trace, row=1, col=1)\n\n scatter_fig = px.scatter(\n cv_results,\n x=\"mean_score_time\",\n y=\"mean_test_score\",\n error_x=\"std_score_time\",\n error_y=\"std_test_score\",\n hover_data=param_name,\n )\n line_fig = px.line(\n cv_results,\n x=\"mean_score_time\",\n y=\"mean_test_score\",\n )\n\n scatter_trace = scatter_fig[\"data\"][0]\n line_trace = line_fig[\"data\"][0]\n scatter_trace.update(marker=dict(color=colors_list[idx]))\n line_trace.update(line=dict(color=colors_list[idx]))\n fig.add_trace(scatter_trace, row=1, col=2)\n fig.add_trace(line_trace, row=1, col=2)\n\nfig.update_layout(\n xaxis=dict(title=\"Train time (s) - lower is better\"),\n yaxis=dict(title=\"Test R2 score - higher is better\"),\n xaxis2=dict(title=\"Predict time (s) - lower is better\"),\n legend=dict(x=0.72, y=0.05, traceorder=\"normal\", borderwidth=1),\n title=dict(x=0.5, text=\"Speed-score trade-off of tree-based ensembles\"),\n)"
109109
]
110110
},
111111
{
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/96b1c8376e660407547a7226ce8b3bab/plot_forest_hist_grad_boosting_comparison.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
for idx, result in enumerate(results):
144144
cv_results = result["cv_results"].round(3)
145145
model_name = result["model"]
146-
param_name = list(param_grids[model_name].keys())[0]
146+
param_name = next(iter(param_grids[model_name].keys()))
147147
cv_results[param_name] = cv_results["param_" + param_name]
148148
cv_results["model"] = model_name
149149

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/efb3df90d4ec295fa0dafe6c8b46211b/plot_grid_search_stats.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ def compute_corrected_ttest(differences, df, n_train, n_test):
230230

231231
n = differences.shape[0] # number of test sets
232232
df = n - 1
233-
n_train = len(list(cv.split(X, y))[0][0])
234-
n_test = len(list(cv.split(X, y))[0][1])
233+
n_train = len(next(iter(cv.split(X, y)))[0])
234+
n_test = len(next(iter(cv.split(X, y)))[1])
235235

236236
t_stat, p_val = compute_corrected_ttest(differences, df, n_train, n_test)
237237
print(f"Corrected t-value: {t_stat:.3f}\nCorrected p-value: {p_val:.3f}")
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

dev/_downloads/scikit-learn-docs.zip

4.74 KB
Binary file not shown.

0 commit comments

Comments
 (0)