Skip to content
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

Error #4

Open
PierreHao opened this issue Apr 7, 2015 · 0 comments
Open

Error #4

PierreHao opened this issue Apr 7, 2015 · 0 comments

Comments

@PierreHao
Copy link

After pip install panns, i try run the code from panns import *

create an index of Euclidean distance

p = PannsIndex(dimension=100, metric='euclidean')

generate a 1000 x 100 dataset

for i in xrange(1000):
v = gaussian_vector(100)
p.add_vector(v)

build an index of 50 trees and save to a file

p.build(50)
p.save('test.idx')

after run this code, there are 1 idx and a npy, that' ok, but when i run the code repeat, all the things are deleted, and the directory is deleted also, what's the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant