[mlpack-svn] r16816 - mlpack/trunk/src/mlpack/methods/linear_regression

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Sat Jul 12 13:09:46 EDT 2014


Author: marcus
Date: Sat Jul 12 13:09:45 2014
New Revision: 16816

Log:
Don't save a rowvector into a colvector. Use the build in option of the save function to transpose the vector.

Modified:
   mlpack/trunk/src/mlpack/methods/linear_regression/linear_regression_main.cpp

Modified: mlpack/trunk/src/mlpack/methods/linear_regression/linear_regression_main.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/linear_regression/linear_regression_main.cpp	(original)
+++ mlpack/trunk/src/mlpack/methods/linear_regression/linear_regression_main.cpp	Sat Jul 12 13:09:45 2014
@@ -170,7 +170,6 @@
     Timer::Stop("prediction");
 
     // Save predictions.
-    predictions = arma::trans(predictions);
-    data::Save(outputPredictions, predictions, true);
+    data::Save(outputPredictions, predictions, true, false);
   }
 }



More information about the mlpack-svn mailing list