Skip to content

Commit 82206de

Browse files
committed
Pushing the docs for revision for branch: master, commit 5404d5daea595366daa4c03754cf70f1981a7f27
1 parent 261bb08 commit 82206de

File tree

849 files changed

+2829
-2829
lines changed

Some content is hidden

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

849 files changed

+2829
-2829
lines changed

dev/_downloads/plot_outlier_detection_housing.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@
8989
legend2[clf_name] = plt.contour(
9090
xx2, yy2, Z2, levels=[0], linewidths=2, colors=colors[i])
9191

92-
legend1_values_list = list( legend1.values() )
93-
legend1_keys_list = list( legend1.keys() )
92+
legend1_values_list = list(legend1.values())
93+
legend1_keys_list = list(legend1.keys())
9494

9595
# Plot the results (= shape of the data points cloud)
9696
plt.figure(1) # two clusters
@@ -112,8 +112,8 @@
112112
plt.ylabel("accessibility to radial highways")
113113
plt.xlabel("pupil-teacher ratio by town")
114114

115-
legend2_values_list = list( legend2.values() )
116-
legend2_keys_list = list( legend2.keys() )
115+
legend2_values_list = list(legend2.values())
116+
legend2_keys_list = list(legend2.keys())
117117

118118
plt.figure(2) # "banana" shape
119119
plt.title("Outlier detection on a real data set (boston housing)")
@@ -123,7 +123,7 @@
123123
plt.legend((legend2_values_list[0].collections[0],
124124
legend2_values_list[1].collections[0],
125125
legend2_values_list[2].collections[0]),
126-
(legend2_values_list[0], legend2_values_list[1], legend2_values_list[2]),
126+
(legend2_keys_list[0], legend2_keys_list[1], legend2_keys_list[2]),
127127
loc="upper center",
128128
prop=matplotlib.font_manager.FontProperties(size=12))
129129
plt.ylabel("% lower status of the population")
-6 Bytes
-6 Bytes
-223 Bytes
-223 Bytes
-459 Bytes
-459 Bytes
-182 Bytes
-182 Bytes
494 Bytes

0 commit comments

Comments
 (0)