Skip to content

Commit c2f42a7

Browse files
committed
Pushing the docs to dev/ for branch: master, commit f734e11a53d3f9b983529fc22b877ef041e35cda
1 parent 744c8b3 commit c2f42a7

File tree

1,193 files changed

+3596
-3644
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,193 files changed

+3596
-3644
lines changed

dev/_downloads/1bba2567637a1618250bc13e249eb0d7/plot_partial_dependence_visualization_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
fig, ax = plt.subplots(figsize=(12, 6))
6565
ax.set_title("Multi-layer Perceptron")
6666
mlp_disp = plot_partial_dependence(mlp, X, ["age", "bmi"], ax=ax,
67-
line_kw={"c": "red"})
67+
line_kw={"color": "red"})
6868

6969
# %%
7070
# Plotting partial dependence of the two models together
@@ -88,7 +88,7 @@
8888
fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(10, 10))
8989
tree_disp.plot(ax=ax1)
9090
ax1.set_title("Decision Tree")
91-
mlp_disp.plot(ax=ax2, line_kw={"c": "red"})
91+
mlp_disp.plot(ax=ax2, line_kw={"color": "red"})
9292
ax2.set_title("Multi-layer Perceptron")
9393

9494
# %%
@@ -102,7 +102,7 @@
102102
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 6))
103103
tree_disp.plot(ax=[ax1, ax2], line_kw={"label": "Decision Tree"})
104104
mlp_disp.plot(ax=[ax1, ax2], line_kw={"label": "Multi-layer Perceptron",
105-
"c": "red"})
105+
"color": "red"})
106106
ax1.legend()
107107
ax2.legend()
108108

@@ -115,7 +115,7 @@
115115
# `plot` will only show the y label and y ticks on the left most plot.
116116

117117
tree_disp.plot(line_kw={"label": "Decision Tree"})
118-
mlp_disp.plot(line_kw={"label": "Multi-layer Perceptron", "c": "red"},
118+
mlp_disp.plot(line_kw={"label": "Multi-layer Perceptron", "color": "red"},
119119
ax=tree_disp.axes_)
120120
tree_disp.figure_.set_size_inches(10, 6)
121121
tree_disp.axes_[0, 0].legend()
@@ -131,4 +131,5 @@
131131
# plot function.
132132
tree_disp = plot_partial_dependence(tree, X, ["age"])
133133
mlp_disp = plot_partial_dependence(mlp, X, ["age"],
134-
ax=tree_disp.axes_, line_kw={"c": "red"})
134+
ax=tree_disp.axes_,
135+
line_kw={"color": "red"})
Binary file not shown.
Binary file not shown.

dev/_downloads/fbad5f36a76ec3e17c024c7b920e5552/plot_partial_dependence_visualization_api.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"outputs": [],
8282
"source": [
83-
"fig, ax = plt.subplots(figsize=(12, 6))\nax.set_title(\"Multi-layer Perceptron\")\nmlp_disp = plot_partial_dependence(mlp, X, [\"age\", \"bmi\"], ax=ax,\n line_kw={\"c\": \"red\"})"
83+
"fig, ax = plt.subplots(figsize=(12, 6))\nax.set_title(\"Multi-layer Perceptron\")\nmlp_disp = plot_partial_dependence(mlp, X, [\"age\", \"bmi\"], ax=ax,\n line_kw={\"color\": \"red\"})"
8484
]
8585
},
8686
{
@@ -98,7 +98,7 @@
9898
},
9999
"outputs": [],
100100
"source": [
101-
"fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(10, 10))\ntree_disp.plot(ax=ax1)\nax1.set_title(\"Decision Tree\")\nmlp_disp.plot(ax=ax2, line_kw={\"c\": \"red\"})\nax2.set_title(\"Multi-layer Perceptron\")"
101+
"fig, (ax1, ax2) = plt.subplots(2, 1, figsize=(10, 10))\ntree_disp.plot(ax=ax1)\nax1.set_title(\"Decision Tree\")\nmlp_disp.plot(ax=ax2, line_kw={\"color\": \"red\"})\nax2.set_title(\"Multi-layer Perceptron\")"
102102
]
103103
},
104104
{
@@ -116,7 +116,7 @@
116116
},
117117
"outputs": [],
118118
"source": [
119-
"fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 6))\ntree_disp.plot(ax=[ax1, ax2], line_kw={\"label\": \"Decision Tree\"})\nmlp_disp.plot(ax=[ax1, ax2], line_kw={\"label\": \"Multi-layer Perceptron\",\n \"c\": \"red\"})\nax1.legend()\nax2.legend()"
119+
"fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 6))\ntree_disp.plot(ax=[ax1, ax2], line_kw={\"label\": \"Decision Tree\"})\nmlp_disp.plot(ax=[ax1, ax2], line_kw={\"label\": \"Multi-layer Perceptron\",\n \"color\": \"red\"})\nax1.legend()\nax2.legend()"
120120
]
121121
},
122122
{
@@ -134,7 +134,7 @@
134134
},
135135
"outputs": [],
136136
"source": [
137-
"tree_disp.plot(line_kw={\"label\": \"Decision Tree\"})\nmlp_disp.plot(line_kw={\"label\": \"Multi-layer Perceptron\", \"c\": \"red\"},\n ax=tree_disp.axes_)\ntree_disp.figure_.set_size_inches(10, 6)\ntree_disp.axes_[0, 0].legend()\ntree_disp.axes_[0, 1].legend()\nplt.show()"
137+
"tree_disp.plot(line_kw={\"label\": \"Decision Tree\"})\nmlp_disp.plot(line_kw={\"label\": \"Multi-layer Perceptron\", \"color\": \"red\"},\n ax=tree_disp.axes_)\ntree_disp.figure_.set_size_inches(10, 6)\ntree_disp.axes_[0, 0].legend()\ntree_disp.axes_[0, 1].legend()\nplt.show()"
138138
]
139139
},
140140
{
@@ -152,7 +152,7 @@
152152
},
153153
"outputs": [],
154154
"source": [
155-
"tree_disp = plot_partial_dependence(tree, X, [\"age\"])\nmlp_disp = plot_partial_dependence(mlp, X, [\"age\"],\n ax=tree_disp.axes_, line_kw={\"c\": \"red\"})"
155+
"tree_disp = plot_partial_dependence(tree, X, [\"age\"])\nmlp_disp = plot_partial_dependence(mlp, X, [\"age\"],\n ax=tree_disp.axes_,\n line_kw={\"color\": \"red\"})"
156156
]
157157
}
158158
],

dev/_downloads/scikit-learn-docs.pdf

-16.4 KB
Binary file not shown.

dev/_images/iris.png

0 Bytes
-318 Bytes
-318 Bytes
-269 Bytes
-269 Bytes

0 commit comments

Comments
 (0)