diff --git a/COPYRIGHT.txt b/COPYRIGHT.txt index db781f43ce..d04af2c29c 100644 --- a/COPYRIGHT.txt +++ b/COPYRIGHT.txt @@ -54,6 +54,7 @@ Copyright: Copyright 2016, Alexander Leinoff Copyright 2016, Palash Ahuja Copyright 2016, Yannis Mentekidis + Copyright 2016, Ranjan Mondal License: BSD-3-clause All rights reserved. . diff --git a/src/mlpack/core.hpp b/src/mlpack/core.hpp index 6bf111f501..6e106f890e 100644 --- a/src/mlpack/core.hpp +++ b/src/mlpack/core.hpp @@ -189,6 +189,7 @@ * - Alexander Leinoff * - Palash Ahuja * - Yannis Mentekidis + * - Ranjan Mondal */ // First, include all of the prerequisites. diff --git a/src/mlpack/core/optimizers/sgd/test_function.cpp b/src/mlpack/core/optimizers/sgd/test_function.cpp index 6edac56f35..730c0a04f6 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: