Skip to content

Commit 21eb82d

Browse files
justinshenkjnothman
authored andcommitted
DOC Remove unused function argument X from plot_clustering function (scikit-learn#11049)
1 parent 96a02f3 commit 21eb82d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cluster/plot_digits_linkage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def nudge_images(X, y):
5656

5757
#----------------------------------------------------------------------
5858
# Visualize the clustering
59-
def plot_clustering(X_red, X, labels, title=None):
59+
def plot_clustering(X_red, labels, title=None):
6060
x_min, x_max = np.min(X_red, axis=0), np.max(X_red, axis=0)
6161
X_red = (X_red - x_min) / (x_max - x_min)
6262

@@ -87,7 +87,7 @@ def plot_clustering(X_red, X, labels, title=None):
8787
clustering.fit(X_red)
8888
print("%s :\t%.2fs" % (linkage, time() - t0))
8989

90-
plot_clustering(X_red, X, clustering.labels_, "%s linkage" % linkage)
90+
plot_clustering(X_red, clustering.labels_, "%s linkage" % linkage)
9191

9292

9393
plt.show()

0 commit comments

Comments
 (0)