[mlpack-svn] r16330 - mlpack/trunk/src/mlpack/tests

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Sat Feb 22 10:55:35 EST 2014


Author: rcurtin
Date: Sat Feb 22 10:55:34 2014
New Revision: 16330

Log:
Update for changed CF API (patch from Siddharth).


Modified:
   mlpack/trunk/src/mlpack/tests/cf_test.cpp
   mlpack/trunk/src/mlpack/tests/to_string_test.cpp

Modified: mlpack/trunk/src/mlpack/tests/cf_test.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/tests/cf_test.cpp	(original)
+++ mlpack/trunk/src/mlpack/tests/cf_test.cpp	Sat Feb 22 10:55:34 2014
@@ -33,7 +33,7 @@
   // Number of users for similarity (not the default).
   const size_t numUsersForSimilarity = 8;
 
-  CF c(numRecs, numUsersForSimilarity, dataset);
+  CF c(dataset, numRecs, numUsersForSimilarity);
 
   // Check parameters.
   BOOST_REQUIRE_EQUAL(c.NumRecs(), numRecs);

Modified: mlpack/trunk/src/mlpack/tests/to_string_test.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/tests/to_string_test.cpp	(original)
+++ mlpack/trunk/src/mlpack/tests/to_string_test.cpp	Sat Feb 22 10:55:34 2014
@@ -291,7 +291,7 @@
   c(0, 2) = 1;
   c(1, 2) = 3;
   c(2, 2) = 0.7;
-  mlpack::cf::CF d(a, a, c);
+  mlpack::cf::CF d(c, a, a);
   Log::Debug << d;
   std::string s = d.ToString();
   BOOST_REQUIRE_NE(s, "");



More information about the mlpack-svn mailing list