Skip to content

Commit

Permalink
10% not 1%
Browse files Browse the repository at this point in the history
  • Loading branch information
AllaHoffman authored Nov 19, 2018
1 parent e57d2e9 commit 7f6b5d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rideshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def get_locations_to_go(self):

def build_clusters(self, locations_to_go):
avg_map_size = (self.max_rows + self.max_columns)/2
one_percent_of_map_size = round(.10 * avg_map_size)
epsilon = int(one_percent_of_map_size if one_percent_of_map_size > 0 else 1)
ten_percent_of_map_size = round(.10 * avg_map_size)
epsilon = int(ten_percent_of_map_size if ten_percent_of_map_size > 0 else 1)
clustering = DBSCAN(eps=epsilon, min_samples=2).fit(locations_to_go)
locations_with_cluster_labels = []
for index, location in enumerate(locations_to_go):
Expand Down

0 comments on commit 7f6b5d2

Please sign in to comment.