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

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Jul 9 14:34:21 EDT 2012


Author: rcurtin
Date: 2012-07-09 14:34:21 -0400 (Mon, 09 Jul 2012)
New Revision: 13183

Modified:
   mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp
Log:
Better error messages (more descriptive, less awkward).


Modified: mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp	2012-07-09 16:22:35 UTC (rev 13182)
+++ mlpack/trunk/src/mlpack/methods/sparse_coding/sparse_coding_main.cpp	2012-07-09 18:34:21 UTC (rev 13183)
@@ -114,16 +114,16 @@
     // Validate size of initial dictionary.
     if (sc.Dictionary().n_cols != atoms)
     {
-      Log::Fatal << "The specified initial dictionary to load has "
-          << sc.Dictionary().n_cols << " atoms, but the learned dictionary "
-          << "was specified to have " << atoms << " atoms!" << endl;
+      Log::Fatal << "The initial dictionary has " << sc.Dictionary().n_cols
+          << " atoms, but the number of atoms was specified to be " << atoms
+          << "!" << endl;
     }
 
     if (sc.Dictionary().n_rows != matX.n_rows)
     {
-      Log::Fatal << "The specified initial dictionary to load has "
-          << sc.Dictionary().n_rows << " dimensions, but the specified data "
-          << "has " << matX.n_rows << " dimensions!" << endl;
+      Log::Fatal << "The initial dictionary has " << sc.Dictionary().n_rows
+          << " dimensions, but the data has " << matX.n_rows << " dimensions!"
+          << endl;
     }
 
     // Run sparse coding.




More information about the mlpack-svn mailing list