Skip to content

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

@ivan-marroquin

Description

@ivan-marroquin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions