Skip to content

Commit 2f89a01

Browse files
committed
Pushing the docs to dev/ for branch: master, commit 373946ec9e3c72116bfbf7fab051cf4797d13e0f
1 parent 1b759ef commit 2f89a01

File tree

1,225 files changed

+3781
-3778
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,225 files changed

+3781
-3778
lines changed
Binary file not shown.

dev/_downloads/23fb33f64b3c23edf25165a3a4f04237/plot_successive_halving_iterations.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cell_type": "markdown",
1616
"metadata": {},
1717
"source": [
18-
"\n# Successive Halving Iterations\n\nThis example illustrates how a successive halving search (\n:class:`~sklearn.model_selection.HalvingGridSearchCV` and\n:class:`~sklearn.model_selection.HalvingRandomSearchCV`) iteratively chooses\nthe best parameter combination out of multiple candidates.\n"
18+
"\n# Successive Halving Iterations\n\nThis example illustrates how a successive halving search\n(:class:`~sklearn.model_selection.HalvingGridSearchCV` and\n:class:`~sklearn.model_selection.HalvingRandomSearchCV`)\niteratively chooses the best parameter combination out of\nmultiple candidates.\n"
1919
]
2020
},
2121
{
@@ -62,7 +62,7 @@
6262
},
6363
"outputs": [],
6464
"source": [
65-
"results = pd.DataFrame(rsh.cv_results_)\nresults['params_str'] = results.params.apply(str)\nresults.drop_duplicates(subset=('params_str', 'iter'), inplace=True)\nmean_scores = results.pivot(index='iter', columns='params_str',\n values='mean_test_score')\nax = mean_scores.plot(legend=False, alpha=.6)\n\nlabels = [\n f'iter={i}\\nn_samples={rsh.n_resources_[i]}\\n'\n f'n_candidates={rsh.n_candidates_[i]}'\n for i in range(rsh.n_iterations_)\n]\nax.set_xticklabels(labels, rotation=45, multialignment='left')\nax.set_title('Scores of candidates over iterations')\nax.set_ylabel('mean test score', fontsize=15)\nax.set_xlabel('iterations', fontsize=15)\nplt.tight_layout()\nplt.show()"
65+
"results = pd.DataFrame(rsh.cv_results_)\nresults['params_str'] = results.params.apply(str)\nresults.drop_duplicates(subset=('params_str', 'iter'), inplace=True)\nmean_scores = results.pivot(index='iter', columns='params_str',\n values='mean_test_score')\nax = mean_scores.plot(legend=False, alpha=.6)\n\nlabels = [\n f'iter={i}\\nn_samples={rsh.n_resources_[i]}\\n'\n f'n_candidates={rsh.n_candidates_[i]}'\n for i in range(rsh.n_iterations_)\n]\n\nax.set_xticks(range(rsh.n_iterations_))\nax.set_xticklabels(labels, rotation=45, multialignment='left')\nax.set_title('Scores of candidates over iterations')\nax.set_ylabel('mean test score', fontsize=15)\nax.set_xlabel('iterations', fontsize=15)\nplt.tight_layout()\nplt.show()"
6666
]
6767
},
6868
{

dev/_downloads/49fae0b4f6ab58738dcbf62236756548/plot_successive_halving_iterations.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
Successive Halving Iterations
33
=============================
44
5-
This example illustrates how a successive halving search (
6-
:class:`~sklearn.model_selection.HalvingGridSearchCV` and
7-
:class:`~sklearn.model_selection.HalvingRandomSearchCV`) iteratively chooses
8-
the best parameter combination out of multiple candidates.
5+
This example illustrates how a successive halving search
6+
(:class:`~sklearn.model_selection.HalvingGridSearchCV` and
7+
:class:`~sklearn.model_selection.HalvingRandomSearchCV`)
8+
iteratively chooses the best parameter combination out of
9+
multiple candidates.
910
1011
"""
1112
import pandas as pd
@@ -60,6 +61,8 @@
6061
f'n_candidates={rsh.n_candidates_[i]}'
6162
for i in range(rsh.n_iterations_)
6263
]
64+
65+
ax.set_xticks(range(rsh.n_iterations_))
6366
ax.set_xticklabels(labels, rotation=45, multialignment='left')
6467
ax.set_title('Scores of candidates over iterations')
6568
ax.set_ylabel('mean test score', fontsize=15)
Binary file not shown.

dev/_downloads/scikit-learn-docs.pdf

-6.2 KB
Binary file not shown.

dev/_images/binder_badge_logo.png

0 Bytes

dev/_images/iris.png

0 Bytes
-238 Bytes
-238 Bytes
-240 Bytes

0 commit comments

Comments
 (0)