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

Update lshash.py #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update lshash.py #3

wants to merge 1 commit into from

Conversation

vins31
Copy link

@vins31 vins31 commented Oct 16, 2013

On the following quick test, I didn't have any extra data.
I had to remove the "[0]" to get the proper result.

import lsh
lsh = lshash.LSHash(hash_size=6,input_dim=8,storage_config={"redis":{"host":"127.0.0.1","port":6380}})
lsh.index([1,2,3,4,5,6,7,8])
lsh.index([2,3,4,5,6,7,8,9])
print lsh.query([1,2,3,4,5,6,7,7])

On the following quick test, I didn't have any extra data.
I had to remove the "[0]" to get the proper result.

import lsh
lsh = lshash.LSHash(hash_size=6,input_dim=8,storage_config={"redis":{"host":"127.0.0.1","port":6380}})
lsh.index([1,2,3,4,5,6,7,8])
lsh.index([2,3,4,5,6,7,8,9])
print lsh.query([1,2,3,4,5,6,7,7])
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

Successfully merging this pull request may close these issues.

1 participant