[mlpack-git] master: Style fixes and remove redundancies (330e82c)
gitdub at mlpack.org
gitdub at mlpack.org
Sat Jun 4 09:43:08 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/29d43319f1a3ace534a95e966be9e903f06b07e1...c726b603bc23c7c304523e60eaba4d496ce48e47
>---------------------------------------------------------------
commit 330e82c648e83b6e8f417a41384957dfe8c81bb4
Author: Yannis Mentekidis <mentekid at gmail.com>
Date: Sat Jun 4 16:43:08 2016 +0300
Style fixes and remove redundancies
>---------------------------------------------------------------
330e82c648e83b6e8f417a41384957dfe8c81bb4
src/mlpack/tests/lsh_test.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/mlpack/tests/lsh_test.cpp b/src/mlpack/tests/lsh_test.cpp
index 26cf24d..9104dab 100644
--- a/src/mlpack/tests/lsh_test.cpp
+++ b/src/mlpack/tests/lsh_test.cpp
@@ -400,7 +400,6 @@ BOOST_AUTO_TEST_CASE(DeterministicMerge)
size_t q;
for (size_t j = 0; j < k; ++j) //for each neighbor
{
- q = 0;
if (neighbors(j, 0) == N || neighbors(j, 1) == N) //neighbor not found, ignore
continue;
@@ -466,14 +465,14 @@ BOOST_AUTO_TEST_CASE(DeterministicNoMerge)
if (neighbors(j, 0) == N || neighbors(j, 1) == N)
continue;
- q = 0;
//query 1 is in cluster 3, which is points 20:29
+ q = 0;
BOOST_REQUIRE(
neighbors(j, q) >= N/2 && neighbors(j, q) < 3*N/4
);
- q = 1;
//query 2 is in cluster 2, which is points 10:19
+ q = 1;
BOOST_REQUIRE(
neighbors(j, q) >= N/4 && neighbors(j, q) < N/2
);
More information about the mlpack-git
mailing list