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

class skhubness.neighbors.HNSW should support fractional norms #69

Open
ivan-marroquin opened this issue Jun 8, 2021 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@ivan-marroquin
Copy link

Hi,

Since this class makes use of nmslib, I think that it should also support fractional norms. The code below shows an example on using fractional norm with nmslib:

import numpy as np
import nmslib

X= np.random.randn(100,7)

index= nmslib.init(method= 'hnsw', space= 'lp', space_params= {'p': 0.1}, data_type= nmslib.DataType.DENSE_VECTOR)
index.addDataPointBatch(X)
index.createIndex()

Thanks for all,

Ivan

@VarIr VarIr added the enhancement New feature or request label Jun 9, 2021
@VarIr
Copy link
Owner

VarIr commented Jun 9, 2021

Thanks for reporting this. Allowing all spaces that nmslib supports is certainly desirable.

@VarIr
Copy link
Owner

VarIr commented Mar 17, 2022

Fractional norms and various other metrics supported by nmslib will be available in the upcoming scikit-hubness v0.30. (No PyPI yet, but one can already install from the sources).

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

No branches or pull requests

2 participants