Skip to content

Commit 3277815

Browse files
fix deprecation np.int in example
1 parent 018b624 commit 3277815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/cluster/plot_clustering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
t1 = time.time()
105105

106106
if hasattr(algorithm, "labels_"):
107-
y_pred = algorithm.labels_.astype(np.int)
107+
y_pred = algorithm.labels_.astype(int)
108108
else:
109109
y_pred = algorithm.predict(X)
110110

0 commit comments

Comments
 (0)