Open JoanFM opened 3 years ago
We have observed some weird behavior seeing small distances at the end of the list of closest matches.
I believe the problem is that the distances are returned as string types and then the sorting does not work
distances
string
sorting
https://github.com/facebookresearch/pysparnn/blob/c299c825fd99f263f3957e9b31197daf23a1e7a3/pysparnn/cluster_index.py#L26
Problem appears when keys indexed are of type str
keys
str
We have observed some weird behavior seeing small distances at the end of the list of closest matches.
I believe the problem is that the
distances
are returned asstring
types and then thesorting
does not workhttps://github.com/facebookresearch/pysparnn/blob/c299c825fd99f263f3957e9b31197daf23a1e7a3/pysparnn/cluster_index.py#L26