-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev min dist fix #25
base: dev
Are you sure you want to change the base?
Dev min dist fix #25
Conversation
0.1.4 Patch Release
d = float(line[2]) | ||
#print(f'{qid} {rid} {d}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guessing this a vestige of testing
@@ -200,21 +198,21 @@ def assign(self, n_records=1000,delim="\t"): | |||
addr_members = self.memberships_lookup[addr] | |||
addr_dists = [] | |||
for id in addr_members: | |||
addr_dists.append(dists[qid][id]) | |||
if id in dists[qid]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it is still useful to remove the samples with distances below minimum threshold, and use this to avoid the key error?
self.add_memberships_lookup(qid, query_addr) | ||
#self.memberships_dict[qid] = ".".join([str(x) for x in query_addr]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to remove the commented code out now that it is moved to the function? or is this a helpful reminder of what was changed?
I think it looks good. I went through it and nothing stood out. Always a good sign! Should we come up with tests for these alternate scenarios that broke the orginal assumptions? |
These fixes address several issues which occured with a different dataset.