Skip to content

Commit 9a3ae21

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d47ad9c commit 9a3ae21

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dynamic_programming/k_means_clustering_tensorflow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def tf_k_means_cluster(vectors, noofclusters):
99
K-Means Clustering using TensorFlow 1.x.
1010
1111
Parameters:
12-
vectors (numpy.ndarray): A n*k 2-D NumPy array of dtype float32,
12+
vectors (numpy.ndarray): A n*k 2-D NumPy array of dtype float32,
1313
where n is the number of vectors and k is their dimensionality.
1414
noofclusters (int): An integer representing the number of clusters (k).
1515
@@ -37,7 +37,7 @@ def tf_k_means_cluster(vectors, noofclusters):
3737

3838
noofclusters = int(noofclusters)
3939
assert noofclusters < len(vectors)
40-
40+
4141
# Find out the dimensionality
4242
dim = len(vectors[0])
4343

0 commit comments

Comments
 (0)