Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
faiss
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
faiss
Commits
7f996bd9
Unverified
Commit
7f996bd9
authored
Jun 02, 2018
by
Lucas Hosseini
Committed by
GitHub
Jun 02, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing tests on OSX (#467)
parent
d1bbee28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
test_index.py
python/tests/test_index.py
+4
-5
No files found.
python/tests/test_index.py
View file @
7f996bd9
...
...
@@ -106,8 +106,8 @@ class EvalIVFPQAccuracy(unittest.TestCase):
D
,
nns
=
index
.
search
(
xq
,
10
)
n_ok
=
(
nns
==
gt_nns
)
.
sum
()
#
should return 170
self
.
assertGreater
(
n_ok
,
16
9
)
#
Should return 166 on mac, and 170 on linux.
self
.
assertGreater
(
n_ok
,
16
5
)
############# replace with explicit assignment indexes
nbits
=
5
...
...
@@ -132,7 +132,7 @@ class EvalIVFPQAccuracy(unittest.TestCase):
n_ok
=
(
nns
==
gt_nns
)
.
sum
()
# should return the same result
self
.
assertGreater
(
n_ok
,
16
9
)
self
.
assertGreater
(
n_ok
,
16
5
)
def
test_IMI_2
(
self
):
...
...
@@ -163,8 +163,7 @@ class EvalIVFPQAccuracy(unittest.TestCase):
n_ok
=
(
nns
==
gt_nns
)
.
sum
()
# should return the same result
self
.
assertGreater
(
n_ok
,
169
)
self
.
assertGreater
(
n_ok
,
165
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment