[mlpack-git] master: Remove reference to old ann optimizer header. (a4e3260)

gitdub at mlpack.org gitdub at mlpack.org
Fri Mar 18 12:03:02 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/74d499aa051a48f006f2a2cac18fce5e5d007164...a4e326027556faf4d7f15eee5d84de460daec5d4

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

commit a4e326027556faf4d7f15eee5d84de460daec5d4
Author: marcus <marcus.edel at fu-berlin.de>
Date:   Fri Mar 18 17:03:02 2016 +0100

    Remove reference to old ann optimizer header.


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

a4e326027556faf4d7f15eee5d84de460daec5d4
 src/mlpack/tests/activation_functions_test.cpp |  1 -
 src/mlpack/tests/connection_traits_test.cpp    | 82 --------------------------
 2 files changed, 83 deletions(-)

diff --git a/src/mlpack/tests/activation_functions_test.cpp b/src/mlpack/tests/activation_functions_test.cpp
index 7e7b883..c14769e 100644
--- a/src/mlpack/tests/activation_functions_test.cpp
+++ b/src/mlpack/tests/activation_functions_test.cpp
@@ -15,7 +15,6 @@
 
 #include <mlpack/methods/ann/ffn.hpp>
 #include <mlpack/methods/ann/init_rules/random_init.hpp>
-#include <mlpack/methods/ann/optimizer/rmsprop.hpp>
 #include <mlpack/methods/ann/performance_functions/mse_function.hpp>
 
 #include <mlpack/methods/ann/layer/bias_layer.hpp>
diff --git a/src/mlpack/tests/connection_traits_test.cpp b/src/mlpack/tests/connection_traits_test.cpp
deleted file mode 100644
index effa58f..0000000
--- a/src/mlpack/tests/connection_traits_test.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * @file connection_traits_test.cpp
- * @author Marcus Edel
- *
- * Test the ConnectionTraits class. Because all of the values are known at
- * compile time, this test is meant to ensure that uses of ConnectionTraits
- * still compile okay and react as expected.
- */
-#include <mlpack/core.hpp>
-
-#include <mlpack/methods/ann/connections/connection_traits.hpp>
-#include <mlpack/methods/ann/connections/self_connection.hpp>
-#include <mlpack/methods/ann/connections/fullself_connection.hpp>
-#include <mlpack/methods/ann/layer/neuron_layer.hpp>
-#include <mlpack/methods/ann/optimizer/irpropp.hpp>
-#include <mlpack/methods/ann/init_rules/random_init.hpp>
-
-#include <boost/test/unit_test.hpp>
-#include "old_boost_test_definitions.hpp"
-
-using namespace mlpack;
-using namespace mlpack::ann;
-
-BOOST_AUTO_TEST_SUITE(ConnectionTraitsTest);
-
-// Be careful!  When writing new tests, always get the boolean value and store
-// it in a temporary, because the Boost unit test macros do weird things and
-// will cause bizarre problems.
-
-// Test the defaults.
-BOOST_AUTO_TEST_CASE(DefaultsTraitsTest)
-{
-  // An irrelevant non-connection type class is used here so that the default
-  // implementation of ConnectionTraits is chosen.
-  bool b = ConnectionTraits<int>::IsSelfConnection;
-  BOOST_REQUIRE_EQUAL(b, false);
-
-  b = ConnectionTraits<int>::IsFullselfConnection;
-  BOOST_REQUIRE_EQUAL(b, false);
-}
-
-// Test the SelfConnection traits.
-BOOST_AUTO_TEST_CASE(SelfConnectionTraitsTest)
-{
-  NeuronLayer<> recurrentLayer(1);
-  NeuronLayer<> hiddenLayer(1);
-  iRPROPp<> conOptimizer(1, 1);
-
-  SelfConnection<
-    decltype(recurrentLayer),
-    decltype(hiddenLayer),
-    decltype(conOptimizer)>
-    layerCon(recurrentLayer, hiddenLayer, conOptimizer);
-
-  bool b = ConnectionTraits<decltype(layerCon)>::IsSelfConnection;
-  BOOST_REQUIRE_EQUAL(b, true);
-
-  b = ConnectionTraits<decltype(layerCon)>::IsFullselfConnection;
-  BOOST_REQUIRE_EQUAL(b, false);
-}
-
-// Test the FullselfConnection traits.
-BOOST_AUTO_TEST_CASE(FullselfConnectionTraitsTest)
-{
-  NeuronLayer<> recurrentLayer(1);
-  NeuronLayer<> hiddenLayer(1);
-  iRPROPp<> conOptimizer(1, 1);
-
-  FullselfConnection<
-    decltype(recurrentLayer),
-    decltype(hiddenLayer),
-    decltype(conOptimizer)>
-    layerCon(recurrentLayer, hiddenLayer, conOptimizer);
-
-  bool b = ConnectionTraits<decltype(layerCon)>::IsSelfConnection;
-  BOOST_REQUIRE_EQUAL(b, false);
-
-  b = ConnectionTraits<decltype(layerCon)>::IsFullselfConnection;
-  BOOST_REQUIRE_EQUAL(b, true);
-}
-
-BOOST_AUTO_TEST_SUITE_END();




More information about the mlpack-git mailing list