Skip to content

Commit

Permalink
check if we had similar distances in the ground truth before trying t…
Browse files Browse the repository at this point in the history
…o calculate their mean/median distance
  • Loading branch information
patrickbr committed Nov 20, 2023
1 parent a0bb5c2 commit c0697c2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions statsimi/feature/feature_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,11 +489,12 @@ def build_matrix(self):
group_nums_aggr += stations_in_group
group_num += 1

self.log.info("Average distance between matching pairs is %.2f"
% mean(self.dists))
if (len(self.dists) > 0):
self.log.info("Average distance between matching pairs is %.2f"
% mean(self.dists))

self.log.info("Median distance between matching pairs is %.2f"
% median(self.dists))
self.log.info("Median distance between matching pairs is %.2f"
% median(self.dists))

self.log.info("Average number of station identifiers per group is %.2f"
% (group_nums_aggr / group_num))
Expand Down

0 comments on commit c0697c2

Please sign in to comment.