[mlpack-svn] r10508 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Dec 2 01:06:26 EST 2011
Author: rcurtin
Date: 2011-12-02 01:06:26 -0500 (Fri, 02 Dec 2011)
New Revision: 10508
Removed:
mlpack/trunk/src/mlpack/tests/infomax_ica_test.cpp
Modified:
mlpack/trunk/src/mlpack/tests/CMakeLists.txt
Log:
Remove InfomaxICA test.
Modified: mlpack/trunk/src/mlpack/tests/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/tests/CMakeLists.txt 2011-12-02 05:53:32 UTC (rev 10507)
+++ mlpack/trunk/src/mlpack/tests/CMakeLists.txt 2011-12-02 06:06:26 UTC (rev 10508)
@@ -19,7 +19,6 @@
emst_test.cpp
gmm_test.cpp
hmm_test.cpp
- infomax_ica_test.cpp
kernel_test.cpp
kmeans_test.cpp
lin_alg_test.cpp
Deleted: mlpack/trunk/src/mlpack/tests/infomax_ica_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/infomax_ica_test.cpp 2011-12-02 05:53:32 UTC (rev 10507)
+++ mlpack/trunk/src/mlpack/tests/infomax_ica_test.cpp 2011-12-02 06:06:26 UTC (rev 10508)
@@ -1,69 +0,0 @@
-/**
- * @file infomax_ica_test.cpp
- *
- * Test for the infomax ICA method.
- */
-#include <mlpack/core.hpp>
-#include <mlpack/methods/infomax_ica/infomax_ica.hpp>
-
-#include <boost/test/unit_test.hpp>
-
-using namespace mlpack;
-using namespace infomax_ica;
-
-void testSQRTM(InfomaxICA& icab_, arma::mat& m)
-{
- icab_.sqrtm(m);
-}
-
-BOOST_AUTO_TEST_SUITE(InfomaxICATest);
-
-BOOST_AUTO_TEST_CASE(SqrtM)
-{
- arma::mat testdatab_;
- double lambdab_ = 0.001;
- int bb_ = 5;
- double epsilonb_ = 0.001;
-
- data::Load("fake.csv", testdatab_);
-
- InfomaxICA icab_(lambdab_, bb_, epsilonb_);
-
- arma::mat intermediateb = icab_.sampleCovariance(testdatab_);
- testSQRTM(icab_, intermediateb);
-}
-
-BOOST_AUTO_TEST_CASE(TestCov)
-{
- arma::mat testdata_;
-
- double lambda_ = 0.001;
- int b_ = 5;
- double epsilon_ = 0.001;
-
- // load some test data that has been verified using the matlab
- // implementation of infomax
- data::Load("fake.csv", testdata_);
-
- InfomaxICA ica_(lambda_, b_, epsilon_);
- ica_.sampleCovariance(testdata_);
-}
-
-BOOST_AUTO_TEST_CASE(TestICA)
-{
- arma::mat testdata_;
- double lambda_ = 0.001;
- int b_ = 5;
- double epsilon_ = 0.001;
-
- // load some test data that has been verified using the matlab
- // implementation of infomax
- data::Load("fake.csv", testdata_);
-
- InfomaxICA ica_(lambda_, b_, epsilon_);
- arma::mat unmixing;
- ica_.applyICA(testdata_);
- ica_.getUnmixing(unmixing);
-}
-
-BOOST_AUTO_TEST_SUITE_END();
More information about the mlpack-svn
mailing list