Open ivan-marroquin opened 3 years ago
Thanks for reporting this. Allowing all spaces that nmslib supports is certainly desirable.
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).
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