[mlpack-git] master: fix bugs in imputation test (028c217)

gitdub at mlpack.org gitdub at mlpack.org
Mon Jul 18 02:16:02 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/ecbfd24defe31d9f39708c0b4c6ad352cd46ed5c...7eec0609aa21cb12aeed3cbcaa1e411dad0359f2

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

commit 028c217057410e2e75691c32bf062202ce5dca3f
Author: Keon Kim <kwk236 at gmail.com>
Date:   Mon Jul 18 15:16:02 2016 +0900

    fix bugs in imputation test


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

028c217057410e2e75691c32bf062202ce5dca3f
 src/mlpack/tests/imputation_test.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/tests/imputation_test.cpp b/src/mlpack/tests/imputation_test.cpp
index 50bada0..2e815ef 100644
--- a/src/mlpack/tests/imputation_test.cpp
+++ b/src/mlpack/tests/imputation_test.cpp
@@ -149,7 +149,7 @@ BOOST_AUTO_TEST_CASE(CustomImputationTest)
 
   // overwrite to the input
   imputer.Impute(input, mappedValue, 0/*dimension*/, true);
-  CheckEqual(input, output);
+  CheckEqual(input, outputT);
 }
 
 /**
@@ -201,7 +201,7 @@ BOOST_AUTO_TEST_CASE(MeanImputationTest)
 
   // overwrite to the input
   imputer.Impute(input, mappedValue, 0/*dimension*/, true);
-  CheckEqual(input, output);
+  CheckEqual(input, outputT);
 }
 
 /**
@@ -252,7 +252,7 @@ BOOST_AUTO_TEST_CASE(MedianImputationTest)
 
   // overwrite to the input
   imputer.Impute(input, mappedValue, 1/*dimension*/, true);
-  CheckEqual(input, output);
+  CheckEqual(input, outputT);
 }
 
 /**
@@ -294,7 +294,7 @@ BOOST_AUTO_TEST_CASE(ListwiseDeletionTest)
 
   // overwrite to the input
   imputer.Impute(input, mappedValue, 0, true); // column wise
-  CheckEqual(input, output);
+  CheckEqual(input, outputT);
 }
 
 BOOST_AUTO_TEST_SUITE_END();




More information about the mlpack-git mailing list