[mlpack-svn] r12291 - mlpack/trunk/src/mlpack/methods/sparse_coding

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Apr 10 19:18:34 EDT 2012


Author: jcline3
Date: 2012-04-10 19:18:34 -0400 (Tue, 10 Apr 2012)
New Revision: 12291

Modified:
   mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp
Log:
Switch from armadillo's load() to data::Load()


Modified: mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp	2012-04-10 21:55:02 UTC (rev 12290)
+++ mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp	2012-04-10 23:18:34 UTC (rev 12291)
@@ -49,7 +49,7 @@
   size_t nAtoms = CLI::GetParam<int>("n_atoms");
   
   mat matX;
-  matX.load(dataFullpath);
+	data::Load(dataFullpath, matX);
   
   uword nPoints = matX.n_cols;
   printf("Loaded %d points in %d dimensions\n", nPoints, matX.n_rows);
@@ -67,7 +67,7 @@
   }
   else {
     mat matInitialD;
-    matInitialD.load(initialDictionaryFullpath);
+		data::Load(initialDictionaryFullpath, matInitialD);
     if(matInitialD.n_cols != nAtoms) {
       Log::Fatal << "The specified initial dictionary to load has " 
 		 << matInitialD.n_cols << " atoms, but the learned dictionary "




More information about the mlpack-svn mailing list