Skip to content

Commit

Permalink
Merge pull request #3 from maumueller/build-parameters-1
Browse files Browse the repository at this point in the history
Correctly set number of probes in FAISS.
  • Loading branch information
ale-f authored May 3, 2018
2 parents 9bb93fe + b956147 commit 94da489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ann_benchmarks/algorithms/faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def fit(self, X):

def set_query_arguments(self, n_probe):
self._n_probe = n_probe
self._index.n_probe = self._n_probe
self._index.nprobe = self._n_probe

def query(self, v, n):
if self._metric == 'angular':
Expand Down

0 comments on commit 94da489

Please sign in to comment.