Skip to content

Commit

Permalink
Remove redundant labels compute
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Feb 20, 2024
1 parent 137add2 commit c4542cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from sentry_sdk.integrations.pymongo import PyMongoIntegration

NAME = 'openaedmap-backend'
VERSION = '2.7.3'
VERSION = '2.7.4'
CREATED_BY = f'{NAME} {VERSION}'
WEBSITE = 'https://openaedmap.org'

Expand Down
2 changes: 1 addition & 1 deletion states/aed_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ async def get_aeds_within_geom(cls, geometry: BaseGeometry, group_eps: float | N
fit_positions = positions

with start_span(description=f'Fitting model with {len(fit_positions)} samples'):
model = Birch(threshold=group_eps, n_clusters=None, copy=False)
model = Birch(threshold=group_eps, n_clusters=None, compute_labels=False, copy=False)
model.fit(fit_positions)

with start_span(description=f'Processing {len(aeds)} samples'):
Expand Down

0 comments on commit c4542cf

Please sign in to comment.