[mlpack-git] master: Refactor main executable. Still needs documentation. (d6e9b1b)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Sep 16 17:30:11 EDT 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/e67787e336136a9e46b2d502bd583b8aea2668a4...d6e9b1be05f6fa78ff56b86fb66332bbe039d8ae

>---------------------------------------------------------------

commit d6e9b1be05f6fa78ff56b86fb66332bbe039d8ae
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Sep 16 21:29:47 2015 +0000

    Refactor main executable.  Still needs documentation.


>---------------------------------------------------------------

d6e9b1be05f6fa78ff56b86fb66332bbe039d8ae
 src/mlpack/methods/logistic_regression/logistic_regression_main.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
index bf609b0..1ef8e99 100644
--- a/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
+++ b/src/mlpack/methods/logistic_regression/logistic_regression_main.cpp
@@ -159,9 +159,9 @@ int main(int argc, char** argv)
   {
     // Set the size of the parameters vector, if necessary.
     if (labelsFile.empty())
-      model.Parameters() = arma::zeros<arma::vec>(regressors.n_rows);
+      model.Parameters() = arma::zeros<arma::vec>(regressors.n_rows - 1);
     else
-      model.Parameters() = arma::zeros<arma::vec>(regressors.n_rows + 1);
+      model.Parameters() = arma::zeros<arma::vec>(regressors.n_rows);
   }
 
   // Check if the responses are in a separate file.



More information about the mlpack-git mailing list