[mlpack-svn] r13831 - mlpack/trunk/src/mlpack/core/data
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Nov 2 20:02:11 EDT 2012
Author: rcurtin
Date: 2012-11-02 20:02:11 -0400 (Fri, 02 Nov 2012)
New Revision: 13831
Modified:
mlpack/trunk/src/mlpack/core/data/load_impl.hpp
Log:
Output the size when loading. How cool!
Modified: mlpack/trunk/src/mlpack/core/data/load_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/data/load_impl.hpp 2012-11-02 19:02:14 UTC (rev 13830)
+++ mlpack/trunk/src/mlpack/core/data/load_impl.hpp 2012-11-03 00:02:11 UTC (rev 13831)
@@ -155,18 +155,21 @@
Log::Warn << "Loading '" << filename << "' as " << stringType << "; "
<< "but this may not be the actual filetype!" << std::endl;
else
- Log::Info << "Loading '" << filename << "' as " << stringType << "."
- << std::endl;
+ Log::Info << "Loading '" << filename << "' as " << stringType << ". ";
bool success = matrix.load(stream, loadType);
if (!success)
{
+ Log::Info << std::endl;
if (fatal)
Log::Fatal << "Loading from '" << filename << "' failed." << std::endl;
else
Log::Warn << "Loading from '" << filename << "' failed." << std::endl;
}
+ else
+ Log::Info << "Size is " << (transpose ? matrix.n_cols : matrix.n_rows)
+ << " x " << (transpose ? matrix.n_rows : matrix.n_cols) << ".\n";
// Now transpose the matrix, if necessary.
if (transpose)
More information about the mlpack-svn
mailing list