[mlpack-git] master, mlpack-1.0.x: Fix collaborative filtering test (#323). (a209510)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:42:02 EST 2015


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

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit a209510138fd593ef0358ede0ffa70406cd7bf91
Author: Ryan Curtin <ryan at ratml.org>
Date:   Thu Feb 6 03:32:49 2014 +0000

    Fix collaborative filtering test (#323).


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

a209510138fd593ef0358ede0ffa70406cd7bf91
 src/mlpack/tests/to_string_test.cpp | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/src/mlpack/tests/to_string_test.cpp b/src/mlpack/tests/to_string_test.cpp
index 70e195d..faa414f 100644
--- a/src/mlpack/tests/to_string_test.cpp
+++ b/src/mlpack/tests/to_string_test.cpp
@@ -240,26 +240,24 @@ BOOST_AUTO_TEST_CASE(BinSpaceString)
   BOOST_REQUIRE_NE(s, "");
 }
 
-/**
 BOOST_AUTO_TEST_CASE(CFString)
 {
   size_t a = 1 ;
   arma::mat c(3,3);
-  c(0, 0) = 0;
-  c(0, 1) = 1;
+  c(0, 0) = 1;
+  c(0, 1) = 2;
   c(0, 2) = 1.5;
-  c(1, 0) = 1;
-  c(1, 1) = 2;
+  c(1, 0) = 2;
+  c(1, 1) = 3;
   c(1, 2) = 2.0;
-  c(2, 0) = 0;
-  c(2, 1) = 2;
+  c(2, 0) = 1;
+  c(2, 1) = 3;
   c(2, 2) = 0.7;
   mlpack::cf::CF d(a,a,c);
   Log::Debug << d;
   std::string s = d.ToString();
   BOOST_REQUIRE_NE(s, "");
 }
-**/
 
 BOOST_AUTO_TEST_CASE(DetString)
 {
@@ -328,7 +326,7 @@ BOOST_AUTO_TEST_CASE(KMeansString)
 
 BOOST_AUTO_TEST_CASE(LarsString)
 {
-  mlpack::regression::LARS::LARS d(false);
+  mlpack::regression::LARS d(false);
   Log::Debug << d;
   std::string s = d.ToString();
   BOOST_REQUIRE_NE(s, "");
@@ -340,7 +338,7 @@ BOOST_AUTO_TEST_CASE(LinRegString)
   arma::mat b(40,1);
   c.randn();
   b.randn();
-  mlpack::regression::LinearRegression::LinearRegression d(c,b);
+  mlpack::regression::LinearRegression d(c,b);
   Log::Debug << d;
   std::string s = d.ToString();
   BOOST_REQUIRE_NE(s, "");



More information about the mlpack-git mailing list