[mlpack-git] master: Fix changed EmptyClusterAction API for the tests too. (ee7c82d)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Tue Jun 16 15:07:51 EDT 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/7df836c2f5a2287cda82801ca20f4b4b410cf4e1...ee7c82dba945db7c5469485c61d626eb0a4629b0

>---------------------------------------------------------------

commit ee7c82dba945db7c5469485c61d626eb0a4629b0
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Jun 16 15:07:19 2015 -0400

    Fix changed EmptyClusterAction API for the tests too.


>---------------------------------------------------------------

ee7c82dba945db7c5469485c61d626eb0a4629b0
 src/mlpack/tests/kmeans_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/tests/kmeans_test.cpp b/src/mlpack/tests/kmeans_test.cpp
index 3fa4e5b..184a6a4 100644
--- a/src/mlpack/tests/kmeans_test.cpp
+++ b/src/mlpack/tests/kmeans_test.cpp
@@ -114,7 +114,7 @@ BOOST_AUTO_TEST_CASE(AllowEmptyClusterTest)
   // Make sure the method doesn't modify any points.
   metric::LMetric<2, true> metric;
   BOOST_REQUIRE_EQUAL(AllowEmptyClusters::EmptyCluster(kMeansData, 2, centroids,
-      counts, metric, 0), 0);
+      centroids, counts, metric, 0), 0);
 
   // Make sure no assignments were changed.
   for (size_t i = 0; i < assignments.n_elem; i++)
@@ -149,8 +149,8 @@ BOOST_AUTO_TEST_CASE(MaxVarianceNewClusterTest)
 
   // This should only change one point.
   MaxVarianceNewCluster mvnc;
-  BOOST_REQUIRE_EQUAL(mvnc.EmptyCluster(data, 2, centroids, counts, metric, 0),
-      1);
+  BOOST_REQUIRE_EQUAL(mvnc.EmptyCluster(data, 2, centroids, centroids, counts,
+      metric, 0), 1);
 
   // Add the variance of each point's distance away from the cluster.  I think
   // this is the sensible thing to do.



More information about the mlpack-git mailing list