Skip to content
Snippets Groups Projects
Commit a597648b authored by Manuel Günther's avatar Manuel Günther
Browse files

Fixed bug in parallel kmeans implementation

parent babdb64a
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ def _read_stats(filename): ...@@ -91,7 +91,7 @@ def _read_stats(filename):
def _accumulate(filenames): def _accumulate(filenames):
zeroeth, first, nsamples, dist = _read_stats(filenames[0]) zeroeth, first, nsamples, dist = _read_stats(filenames[0])
for stat in filenames[1:]: for stat in filenames[1:]:
zeroeth_, first_, nsamples_, dist_ = _read_stats(filenames[1]) zeroeth_, first_, nsamples_, dist_ = _read_stats(stat)
zeroeth += zeroeth_ zeroeth += zeroeth_
first += first_ first += first_
nsamples += nsamples_ nsamples += nsamples_
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment