[mlpack-svn] r13018 - mlpack/trunk/src/mlpack/methods/lars
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Jun 11 14:40:29 EDT 2012
Author: rcurtin
Date: 2012-06-11 14:40:29 -0400 (Mon, 11 Jun 2012)
New Revision: 13018
Modified:
mlpack/trunk/src/mlpack/methods/lars/lars_main.cpp
Log:
This check changes because we're loading X and not transposing.
Modified: mlpack/trunk/src/mlpack/methods/lars/lars_main.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/lars/lars_main.cpp 2012-06-11 18:36:49 UTC (rev 13017)
+++ mlpack/trunk/src/mlpack/methods/lars/lars_main.cpp 2012-06-11 18:40:29 UTC (rev 13018)
@@ -36,10 +36,10 @@
PARAM_STRING("output_file", "File to save beta (linear estimator) to", "o",
"output.csv");
-PARAM_DOUBLE("lambda1", "Regularization parameter for l1-norm penalty", "", 0);
-PARAM_DOUBLE("lambda2", "Regularization parameter for l2-norm penalty", "", 0);
+PARAM_DOUBLE("lambda1", "Regularization parameter for l1-norm penalty", "l", 0);
+PARAM_DOUBLE("lambda2", "Regularization parameter for l2-norm penalty", "L", 0);
PARAM_FLAG("use_cholesky", "Use Cholesky decomposition during computation "
- "rather than explicitly computing the full Gram matrix", "");
+ "rather than explicitly computing the full Gram matrix", "c");
using namespace arma;
using namespace std;
@@ -74,7 +74,7 @@
if (matY.n_cols > 1)
Log::Fatal << "Only one column or row allowed in responses file!" << endl;
- if (matY.n_elem != matX.n_cols)
+ if (matY.n_elem != matX.n_rows)
Log::Fatal << "Number of responses must be equal to number of rows of X!"
<< endl;
More information about the mlpack-svn
mailing list