Skip to content

Commit

Permalink
Correctly set number of probes in FAISS.
Browse files Browse the repository at this point in the history
  • Loading branch information
maumueller committed May 3, 2018
1 parent 059b202 commit b6839f2
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 b6839f2

Please sign in to comment.