[mlpack-git] master, mlpack-1.0.x: Remove unused variables to fix warnings. (b3c5f9b)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:46:51 EST 2015
Repository : https://github.com/mlpack/mlpack
On branches: master,mlpack-1.0.x
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit b3c5f9beaab7b9274e1c5899697ccd2ce1253697
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Apr 16 19:09:27 2014 +0000
Remove unused variables to fix warnings.
>---------------------------------------------------------------
b3c5f9beaab7b9274e1c5899697ccd2ce1253697
src/mlpack/tests/sparse_autoencoder_test.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/mlpack/tests/sparse_autoencoder_test.cpp b/src/mlpack/tests/sparse_autoencoder_test.cpp
index 735037f..03d4e72 100644
--- a/src/mlpack/tests/sparse_autoencoder_test.cpp
+++ b/src/mlpack/tests/sparse_autoencoder_test.cpp
@@ -105,7 +105,6 @@ BOOST_AUTO_TEST_CASE(SparseAutoencoderFunctionRegularizationEvaluate)
const size_t trials = 50;
const size_t vSize = 20;
const size_t hSize = 10;
- const size_t l1 = hSize;
const size_t l2 = vSize;
const size_t l3 = 2 * hSize;
@@ -119,7 +118,7 @@ BOOST_AUTO_TEST_CASE(SparseAutoencoderFunctionRegularizationEvaluate)
SparseAutoencoderFunction safBigReg(data, vSize, hSize, 20, 0);
// Run a number of trials.
- for(size_t i = 0; i < trials; i++)
+ for (size_t i = 0; i < trials; i++)
{
// Create a random set of parameters.
arma::mat parameters;
@@ -200,10 +199,8 @@ BOOST_AUTO_TEST_CASE(SparseAutoencoderFunctionKLDivergenceEvaluate)
BOOST_AUTO_TEST_CASE(SparseAutoencoderFunctionGradient)
{
const size_t points = 1000;
- const size_t trials = 50;
const size_t vSize = 20;
const size_t hSize = 10;
- const size_t l1 = hSize;
const size_t l2 = vSize;
const size_t l3 = 2 * hSize;
More information about the mlpack-git
mailing list