[mlpack-git] master: Fix style in test comments. (af12e76)
gitdub at mlpack.org
gitdub at mlpack.org
Wed Jun 22 14:09:07 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/a9f5622c8a14409111f2d71bf5c0f8aaa8ad4ae1...37fda23945b4f998cd5fa6ec011ae345236c8552
>---------------------------------------------------------------
commit af12e7665519f7342c6662594bb4b22d20a37d5b
Author: MarcosPividori <marcos.pividori at gmail.com>
Date: Thu Jun 9 17:46:08 2016 -0300
Fix style in test comments.
>---------------------------------------------------------------
af12e7665519f7342c6662594bb4b22d20a37d5b
src/mlpack/tests/aknn_test.cpp | 16 +++++++++++-----
src/mlpack/tests/knn_test.cpp | 4 +++-
2 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/src/mlpack/tests/aknn_test.cpp b/src/mlpack/tests/aknn_test.cpp
index 8d865ba..70abcc8 100644
--- a/src/mlpack/tests/aknn_test.cpp
+++ b/src/mlpack/tests/aknn_test.cpp
@@ -241,7 +241,9 @@ BOOST_AUTO_TEST_CASE(DualBallTreeTest)
REQUIRE_RELATIVE_ERR(ballDistances(i), naiveDistances(i), 0.05);
}
-// Make sure sparse nearest neighbors works with kd trees.
+/**
+ * Make sure sparse nearest neighbors works with kd trees.
+ */
BOOST_AUTO_TEST_CASE(SparseKNNKDTreeTest)
{
// The dimensionality of these datasets must be high so that the probability
@@ -274,8 +276,10 @@ BOOST_AUTO_TEST_CASE(SparseKNNKDTreeTest)
REQUIRE_RELATIVE_ERR(sparseDistances(j, i), naiveDistances(j, i), 0.05);
}
-// Ensure that we can build an NSModel<NearestNeighborSearch> and get correct
-// results.
+/**
+ * Ensure that we can build an NSModel<NearestNeighborSearch> and get correct
+ * results.
+ */
BOOST_AUTO_TEST_CASE(KNNModelTest)
{
typedef NSModel<NearestNeighborSort> KNNModel;
@@ -335,8 +339,10 @@ BOOST_AUTO_TEST_CASE(KNNModelTest)
}
}
-// Ensure that we can build an NSModel<NearestNeighborSearch> and get correct
-// results, in the case where the reference set is the same as the query set.
+/**
+ * Ensure that we can build an NSModel<NearestNeighborSearch> and get correct
+ * results, in the case where the reference set is the same as the query set.
+ */
BOOST_AUTO_TEST_CASE(KNNModelMonochromaticTest)
{
typedef NSModel<NearestNeighborSort> KNNModel;
diff --git a/src/mlpack/tests/knn_test.cpp b/src/mlpack/tests/knn_test.cpp
index aa169b7..85c6b7a 100644
--- a/src/mlpack/tests/knn_test.cpp
+++ b/src/mlpack/tests/knn_test.cpp
@@ -888,7 +888,9 @@ BOOST_AUTO_TEST_CASE(DualBallTreeTest)
}
}
-// Make sure sparse nearest neighbors works with kd trees.
+/**
+ * Make sure sparse nearest neighbors works with kd trees.
+ */
BOOST_AUTO_TEST_CASE(SparseKNNKDTreeTest)
{
// The dimensionality of these datasets must be high so that the probability
More information about the mlpack-git
mailing list