Skip to content

Commit 02196df

Browse files
committed
Pushing the docs to dev/ for branch: master, commit 846e6a38b032c46490e3556cf9550a4563525e8d
1 parent 5a3a628 commit 02196df

File tree

1,198 files changed

+3673
-3657
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,198 files changed

+3673
-3657
lines changed
Binary file not shown.

dev/_downloads/51a82a09a4aa0f703f69fb5d4f15104f/plot_partial_dependence_visualization_api.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
"cell_type": "markdown",
124124
"metadata": {},
125125
"source": [
126-
"`tree_disp.axes_` is a numpy array container the axes used to draw the\npartial dependence plots. This can be passed to `mlp_disp` to have the same\naffect of drawing the plots on top of each other. Furthermore, the\n`mlp_disp.figure_` stores the figure, which allows for resizing the figure\nafter calling `plot`.\n\n"
126+
"`tree_disp.axes_` is a numpy array container the axes used to draw the\npartial dependence plots. This can be passed to `mlp_disp` to have the same\naffect of drawing the plots on top of each other. Furthermore, the\n`mlp_disp.figure_` stores the figure, which allows for resizing the figure\nafter calling `plot`. In this case `tree_disp.axes_` has two dimensions, thus\n`plot` will only show the y label and y ticks on the left most plot.\n\n"
127127
]
128128
},
129129
{

dev/_downloads/5a693c97e821586539ab9d250762742c/plot_partial_dependence.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"outputs": [],
8282
"source": [
83-
"print('Computing partial dependence plots...')\ntic = time()\n# We don't compute the 2-way PDP (5, 1) here, because it is a lot slower\n# with the brute method.\nfeatures = [0, 5, 1, 2]\nplot_partial_dependence(est, X_train, features, feature_names=names,\n n_jobs=3, grid_resolution=20)\nprint(\"done in {:.3f}s\".format(time() - tic))\nfig = plt.gcf()\nfig.suptitle('Partial dependence of house value on non-___location features\\n'\n 'for the California housing dataset, with MLPRegressor')\nfig.subplots_adjust(wspace=0.8, hspace=0.3)"
83+
"print('Computing partial dependence plots...')\ntic = time()\n# We don't compute the 2-way PDP (5, 1) here, because it is a lot slower\n# with the brute method.\nfeatures = [0, 5, 1, 2]\nplot_partial_dependence(est, X_train, features, feature_names=names,\n n_jobs=3, grid_resolution=20)\nprint(\"done in {:.3f}s\".format(time() - tic))\nfig = plt.gcf()\nfig.suptitle('Partial dependence of house value on non-___location features\\n'\n 'for the California housing dataset, with MLPRegressor')\nfig.subplots_adjust(hspace=0.3)"
8484
]
8585
},
8686
{
@@ -116,7 +116,7 @@
116116
},
117117
"outputs": [],
118118
"source": [
119-
"print('Computing partial dependence plots...')\ntic = time()\nfeatures = [0, 5, 1, 2, (5, 1)]\nplot_partial_dependence(est, X_train, features, feature_names=names,\n n_jobs=3, grid_resolution=20)\nprint(\"done in {:.3f}s\".format(time() - tic))\nfig = plt.gcf()\nfig.suptitle('Partial dependence of house value on non-___location features\\n'\n 'for the California housing dataset, with Gradient Boosting')\nfig.subplots_adjust(wspace=0.8, hspace=0.3)"
119+
"print('Computing partial dependence plots...')\ntic = time()\nfeatures = [0, 5, 1, 2, (5, 1)]\nplot_partial_dependence(est, X_train, features, feature_names=names,\n n_jobs=3, grid_resolution=20)\nprint(\"done in {:.3f}s\".format(time() - tic))\nfig = plt.gcf()\nfig.suptitle('Partial dependence of house value on non-___location features\\n'\n 'for the California housing dataset, with Gradient Boosting')\nfig.subplots_adjust(wspace=0.4, hspace=0.3)"
120120
]
121121
},
122122
{

dev/_downloads/781bb5a2dc85df6b75ee78d2eb118b0b/plot_partial_dependence_visualization_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@
114114
# partial dependence plots. This can be passed to `mlp_disp` to have the same
115115
# affect of drawing the plots on top of each other. Furthermore, the
116116
# `mlp_disp.figure_` stores the figure, which allows for resizing the figure
117-
# after calling `plot`.
117+
# after calling `plot`. In this case `tree_disp.axes_` has two dimensions, thus
118+
# `plot` will only show the y label and y ticks on the left most plot.
118119

119120
tree_disp.plot(line_kw={"label": "Decision Tree"})
120121
mlp_disp.plot(line_kw={"label": "Multi-layer Perceptron", "c": "red"},
Binary file not shown.

dev/_downloads/fa25d310c75e4ff65e62ab2cd8fdcef4/plot_partial_dependence.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
fig = plt.gcf()
112112
fig.suptitle('Partial dependence of house value on non-___location features\n'
113113
'for the California housing dataset, with MLPRegressor')
114-
fig.subplots_adjust(wspace=0.8, hspace=0.3)
114+
fig.subplots_adjust(hspace=0.3)
115115

116116
##############################################################################
117117
# Partial Dependence computation for Gradient Boosting
@@ -150,7 +150,7 @@
150150
fig = plt.gcf()
151151
fig.suptitle('Partial dependence of house value on non-___location features\n'
152152
'for the California housing dataset, with Gradient Boosting')
153-
fig.subplots_adjust(wspace=0.8, hspace=0.3)
153+
fig.subplots_adjust(wspace=0.4, hspace=0.3)
154154

155155

156156
##############################################################################

dev/_downloads/scikit-learn-docs.pdf

11.1 KB
Binary file not shown.

dev/_images/iris.png

0 Bytes
-203 Bytes
-203 Bytes

0 commit comments

Comments
 (0)