Skip to content

Commit 76ba28e

Browse files
committed
Pushing the docs to dev/ for branch: master, commit 274724534d243f1bd2e42baf696d13f5eceafe30
1 parent 224cfbe commit 76ba28e

File tree

968 files changed

+2906
-2912
lines changed

Some content is hidden

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

968 files changed

+2906
-2912
lines changed
-53 Bytes
Binary file not shown.
-51 Bytes
Binary file not shown.

dev/_downloads/plot_gradient_boosting_early_stopping.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"outputs": [],
4646
"source": [
47-
"plt.figure(figsize=(9, 5))\n\nbar1 = plt.bar(index, score_gb, bar_width, label='Without early stopping',\n color='crimson')\nbar2 = plt.bar(index + bar_width, score_gbes, bar_width,\n label='With early stopping', color='coral')\n\nmax_y = np.amax(np.maximum(score_gb, score_gbes))\n\nplt.xticks(index + bar_width, names)\nplt.yticks(np.arange(0, 1.3, 0.1))\n\n\ndef autolabel(rects, n_estimators):\n \"\"\"\n Attach a text label above each bar displaying n_estimators of each model\n \"\"\"\n for i, rect in enumerate(rects):\n plt.text(rect.get_x() + rect.get_width() / 2.,\n 1.05 * rect.get_height(), 'n_est=%d' % n_estimators[i],\n ha='center', va='bottom')\n\n\nautolabel(bar1, n_gb)\nautolabel(bar2, n_gbes)\n\nplt.ylim([0, 1.3])\nplt.legend(loc='best')\nplt.grid(True)\n\nplt.xlabel('Datasets')\nplt.ylabel('Test score')\n\nplt.show()"
47+
"plt.figure(figsize=(9, 5))\n\nbar1 = plt.bar(index, score_gb, bar_width, label='Without early stopping',\n color='crimson')\nbar2 = plt.bar(index + bar_width, score_gbes, bar_width,\n label='With early stopping', color='coral')\n\nplt.xticks(index + bar_width, names)\nplt.yticks(np.arange(0, 1.3, 0.1))\n\n\ndef autolabel(rects, n_estimators):\n \"\"\"\n Attach a text label above each bar displaying n_estimators of each model\n \"\"\"\n for i, rect in enumerate(rects):\n plt.text(rect.get_x() + rect.get_width() / 2.,\n 1.05 * rect.get_height(), 'n_est=%d' % n_estimators[i],\n ha='center', va='bottom')\n\n\nautolabel(bar1, n_gb)\nautolabel(bar2, n_gbes)\n\nplt.ylim([0, 1.3])\nplt.legend(loc='best')\nplt.grid(True)\n\nplt.xlabel('Datasets')\nplt.ylabel('Test score')\n\nplt.show()"
4848
]
4949
},
5050
{

dev/_downloads/plot_gradient_boosting_early_stopping.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@
102102
bar2 = plt.bar(index + bar_width, score_gbes, bar_width,
103103
label='With early stopping', color='coral')
104104

105-
max_y = np.amax(np.maximum(score_gb, score_gbes))
106-
107105
plt.xticks(index + bar_width, names)
108106
plt.yticks(np.arange(0, 1.3, 0.1))
109107

dev/_downloads/scikit-learn-docs.pdf

-3.74 KB
Binary file not shown.
86 Bytes
86 Bytes
103 Bytes
103 Bytes
297 Bytes

0 commit comments

Comments
 (0)