[mlpack-git] master: Fix invalid accesses. (2aedd27)

gitdub at mlpack.org gitdub at mlpack.org
Tue Feb 23 12:13:34 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/a1486ebcf59391b69ffca6790d8f56239a03f1c5...2aedd27420d7c268d54c867071ef2b85fbacf689

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

commit 2aedd27420d7c268d54c867071ef2b85fbacf689
Author: Ryan Curtin <ryan at ratml.org>
Date:   Tue Feb 23 12:13:34 2016 -0500

    Fix invalid accesses.


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

2aedd27420d7c268d54c867071ef2b85fbacf689
 src/mlpack/tests/logistic_regression_test.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/tests/logistic_regression_test.cpp b/src/mlpack/tests/logistic_regression_test.cpp
index f6e853a..f567049 100644
--- a/src/mlpack/tests/logistic_regression_test.cpp
+++ b/src/mlpack/tests/logistic_regression_test.cpp
@@ -602,7 +602,7 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionLBFGSGaussianTest)
     data.col(i) = g1.Random();
     responses[i] = 0;
   }
-  for (size_t i = 501; i < 1000; ++i)
+  for (size_t i = 500; i < 1000; ++i)
   {
     data.col(i) = g2.Random();
     responses[i] = 1;
@@ -629,7 +629,7 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionSGDGaussianTest)
     data.col(i) = g1.Random();
     responses[i] = 0;
   }
-  for (size_t i = 501; i < 1000; ++i)
+  for (size_t i = 500; i < 1000; ++i)
   {
     data.col(i) = g2.Random();
     responses[i] = 1;
@@ -650,7 +650,7 @@ BOOST_AUTO_TEST_CASE(LogisticRegressionSGDGaussianTest)
     data.col(i) = g1.Random();
     responses[i] = 0;
   }
-  for (size_t i = 501; i < 1000; ++i)
+  for (size_t i = 500; i < 1000; ++i)
   {
     data.col(i) = g2.Random();
     responses[i] = 1;




More information about the mlpack-git mailing list