8000 k-means - added verbose-level print after initialization · seckcoder/scikit-learn@0e71824 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0e71824

Browse files
jabergGaelVaroquaux
authored andcommitted
k-means - added verbose-level print after initialization
1 parent e2ce790 commit 0e71824

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scikits/learn/cluster/k_means_.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ def k_means(X, k, init='k-means++', n_init=10, max_iter=300, verbose=0,
163163
"be 'k-mean++' or 'random' or an ndarray, "
164164
"'%s' (type '%s') was passed.")
165165

166+
if verbose:
167+
print 'Initialization complete'
166168
# iterations
167169
for i in range(max_iter):
168170
centers_old = centers.copy()

0 commit comments

Comments
 (0)
0