Skip to content

Commit

Permalink
fix nmslib.py typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunjiangZhu committed Jun 22, 2020
1 parent 6db359e commit 4795f3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified ann_benchmarks/.DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions ann_benchmarks/algorithms/nmslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def fit(self, X):
X_trans = NmslibReuseIndex.matrToStrArray(csr_matrix(X))
else:
X_trans = NmslibReuseIndex.intMatrToStrArray(X)
self._index = nmslib.init(space=self._nmslib_metric, method=self._method_name, data_type=nmslib.DataType.OBJECT_AS_STRING)
self._index.addDataPointBatch(X_trans)
else:
self._index = nmslib.init(space=self._nmslib_metric, method=self._method_name)
self._index.addDataPointBatch(X)
Expand Down

0 comments on commit 4795f3e

Please sign in to comment.