simpleneighbors icon indicating copy to clipboard operation
simpleneighbors copied to clipboard

The load function does not work as expected

Open rupamroy opened this issue 4 years ago • 1 comments

I create a simpleneighbor index with 2 dim vectors and build and save it and also when i test it it works fine. Then in another program I load that index from the saved file using the load method and try to use the index, That comes back with errors. Can you help? I am attaching the screenshot of the whole thing which will clearly explain what is going on.

Simpleneighbors

rupamroy avatar Jul 13 '20 13:07 rupamroy

Hi! The .load() method should be called on the SimpleNeighbors class, not on an object. The code in your second notebook should read:

from simpleneighbors import SimpleNeighbors
sim = SimpleNeighbors.load('test')

Apologies for the confusion!

aparrish avatar Aug 06 '20 22:08 aparrish