[mlpack-svn] r12293 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Apr 10 19:37:55 EDT 2012
Author: jcline3
Date: 2012-04-10 19:37:55 -0400 (Tue, 10 Apr 2012)
New Revision: 12293
Modified:
mlpack/trunk/src/mlpack/tests/hmm_test.cpp
Log:
Fix test compile time errors, missing <> for GMM
Modified: mlpack/trunk/src/mlpack/tests/hmm_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/hmm_test.cpp 2012-04-10 23:21:56 UTC (rev 12292)
+++ mlpack/trunk/src/mlpack/tests/hmm_test.cpp 2012-04-10 23:37:55 UTC (rev 12293)
@@ -738,8 +738,8 @@
BOOST_AUTO_TEST_CASE(GMMHMMPredictTest)
{
// We will use two GMMs; one with two components and one with three.
- std::vector<GMM> gmms(2);
- gmms[0] = GMM(2, 2);
+ std::vector<GMM</*EMFit<>*/ > > gmms(2);
+ gmms[0] = GMM<>(2, 2);
gmms[0].Weights() = arma::vec("0.75 0.25");
// N([2.25 3.10], [1.00 0.20; 0.20 0.89])
@@ -750,7 +750,7 @@
gmms[0].Means()[1] = arma::vec("7.10 5.01");
gmms[0].Covariances()[1] = arma::mat("1.00 0.00; 0.00 1.01");
- gmms[1] = GMM(3, 2);
+ gmms[1] = GMM<>(3, 2);
gmms[1].Weights() = arma::vec("0.4 0.2 0.4");
gmms[1].Means()[0] = arma::vec("-3.00 -6.12");
@@ -767,7 +767,7 @@
"0.70 0.50");
// Now build the model.
- HMM<GMM> hmm(trans, gmms);
+ HMM<GMM<> > hmm(trans, gmms);
// Make a sequence of observations.
arma::mat observations(2, 1000);
More information about the mlpack-svn
mailing list