b41c6160334af6d31bc27e50bd2a758edd9eda6c,ann_benchmarks/algorithms/faiss_hnsw.py,FaissHNSW,query,#FaissHNSW#,27

Before Change


        self.index.hnsw.efSearch = ef

    def query(self, v, n):
        D, I = self.index.search(np.expand_dims(v,axis=0), n)
        return I[0]

    def freeIndex(self):

After Change


        self.index.hnsw.efSearch = ef

    def query(self, v, n):
        D, I = self.index.search(np.expand_dims(v,axis=0).astype(np.float32), n)
        return I[0]

    def batch_query(self, X, n):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: erikbern/ann-benchmarks
Commit Name: b41c6160334af6d31bc27e50bd2a758edd9eda6c
Time: 2018-09-29
Author: maau@itu.dk
File Name: ann_benchmarks/algorithms/faiss_hnsw.py
Class Name: FaissHNSW
Method Name: query


Project Name: philipperemy/keras-tcn
Commit Name: ef050ab588178076508ea4c21368b5976b1b2d87
Time: 2020-01-25
Author: premy.enseirb@gmail.com
File Name: tasks/copy_memory/utils.py
Class Name:
Method Name: data_generator