[mlpack-git] master: Remove unused result variable from the AdaDelta test. (5641b4d)

gitdub at mlpack.org gitdub at mlpack.org
Fri Mar 18 08:41:42 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/322ff1c0622c7574800014f21d8a537c68101b5f...5641b4de32a0616b62fbf4e220f09c0d0f257d7a

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

commit 5641b4de32a0616b62fbf4e220f09c0d0f257d7a
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Fri Mar 18 13:41:42 2016 +0100

    Remove unused result variable from the AdaDelta test.


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

5641b4de32a0616b62fbf4e220f09c0d0f257d7a
 src/mlpack/tests/ada_delta_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/tests/ada_delta_test.cpp b/src/mlpack/tests/ada_delta_test.cpp
index 8ff716e..96ba110 100644
--- a/src/mlpack/tests/ada_delta_test.cpp
+++ b/src/mlpack/tests/ada_delta_test.cpp
@@ -34,7 +34,7 @@ BOOST_AUTO_TEST_CASE(SimpleAdaDeltaTestFunction)
   AdaDelta<SGDTestFunction> optimizer(f, 0.99, 1e-8, 5000000, 1e-9, true);
 
   arma::mat coordinates = f.GetInitialPoint();
-  const double result = optimizer.Optimize(coordinates);
+  optimizer.Optimize(coordinates);
 
   BOOST_REQUIRE_SMALL(coordinates[0], 1e-3);
   BOOST_REQUIRE_SMALL(coordinates[1], 1e-3);




More information about the mlpack-git mailing list