[mlpack-git] master: little change (7e1e1de)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Apr 11 12:45:57 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/460e326cb2dd1025d45f424bc70967f8d76a4c2f...78f6ac2e036f659c81be032ebbec55b98fe7461f
>---------------------------------------------------------------
commit 7e1e1deb048ff77cb09b692f34cf3198473f7a6f
Author: ranjan1990 <ranjan.rbc at gmail.com>
Date: Mon Apr 11 22:15:57 2016 +0530
little change
>---------------------------------------------------------------
7e1e1deb048ff77cb09b692f34cf3198473f7a6f
src/mlpack/core/optimizers/sgd/test_function.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/core/optimizers/sgd/test_function.cpp b/src/mlpack/core/optimizers/sgd/test_function.cpp
index 6edac56..730c0a0 100644
--- a/src/mlpack/core/optimizers/sgd/test_function.cpp
+++ b/src/mlpack/core/optimizers/sgd/test_function.cpp
@@ -41,7 +41,7 @@ void SGDTestFunction::Gradient(const arma::mat& coordinates,
if (coordinates[0] >= 0)
gradient[0] = std::exp(-coordinates[0]);
else
- gradient[0] = -std::exp(coordinates[1]);
+ gradient[0] = -std::exp(coordinates[0]);
break;
case 1:
More information about the mlpack-git
mailing list