pixelogik / NearPy

Python framework for fast (approximated) nearest neighbour search in large, high-dimensional data sets using different locality-sensitive hashes.
MIT License
759 stars 152 forks source link

collect_all_bucket_keys() KeyError: '0' #81

Open GertjanBrouwer opened 5 years ago

GertjanBrouwer commented 5 years ago

Hi,

I am getting:

randombinaryprojectiontree.py", line 110, in bucket_keys_to_guarantee_result_set_size
    listB = self.childs[other_hash_char].collect_all_bucket_keys()
KeyError: '0'

I generated a RandomBinaryProjectionTree and added about 206 images. I set the minimum amount to be retrieved to 2. It gives me this error. When I set it to 1 I don't get errors.