Skip to content

Commit 8bc2fa3

Browse files
committed
Merge pull request scikit-learn#4947 from zyrikby/patch-1
Updated graph ranges
2 parents ad5e229 + d9e4631 commit 8bc2fa3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cluster/plot_kmeans_digits.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def bench_k_means(estimator, name, data):
9696
h = .02 # point in the mesh [x_min, m_max]x[y_min, y_max].
9797

9898
# Plot the decision boundary. For that, we will assign a color to each
99-
x_min, x_max = reduced_data[:, 0].min() + 1, reduced_data[:, 0].max() - 1
100-
y_min, y_max = reduced_data[:, 1].min() + 1, reduced_data[:, 1].max() - 1
99+
x_min, x_max = reduced_data[:, 0].min() - 1, reduced_data[:, 0].max() + 1
100+
y_min, y_max = reduced_data[:, 1].min() - 1, reduced_data[:, 1].max() + 1
101101
xx, yy = np.meshgrid(np.arange(x_min, x_max, h), np.arange(y_min, y_max, h))
102102

103103
# Obtain labels for each point in mesh. Use last trained model.

0 commit comments

Comments
 (0)