Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
error fixed
Browse files Browse the repository at this point in the history
error fixed
  • Loading branch information
Alonelk committed Sep 27, 2018
1 parent ec72c00 commit 7bbee5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k_means_plus_plus/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _populate_initial_centers(self):
distances = self._distances_from_point_list(rows)

normalized_distances = distances / distances.sum()
normalized_distances.sort()
normalized_distances.sort_values()
dice_roll = np.random.rand()
min_over_roll = normalized_distances[
normalized_distances.cumsum() >= dice_roll].min()
Expand Down

0 comments on commit 7bbee5c

Please sign in to comment.