Commit 4403f875 by Mikhail Korobov

Merge pull request #673 from helmanofer/ofer_dev

Replaced python 2.x xrange to python 3.x range
parents 16ed592c e23ab92c
......@@ -50,8 +50,8 @@ class GAAClusterer(VectorSpaceClusterer):
# construct the similarity matrix
dims = (N, N)
dist = numpy.ones(dims, dtype=numpy.float)*numpy.inf
for i in xrange(N):
for j in xrange(i+1, N):
for i in range(N):
for j in range(i+1, N):
dist[i, j] = cosine_distance(vectors[i], vectors[j])
while cluster_count > max(self._num_clusters, 1):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment