[mlpack-svn] r10178 - mlpack/trunk/src/mlpack/methods/hmm

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Nov 7 23:28:45 EST 2011


Author: rcurtin
Date: 2011-11-07 23:28:44 -0500 (Mon, 07 Nov 2011)
New Revision: 10178

Modified:
   mlpack/trunk/src/mlpack/methods/hmm/generate.cpp
   mlpack/trunk/src/mlpack/methods/hmm/loglik.cpp
   mlpack/trunk/src/mlpack/methods/hmm/viterbi.cpp
Log:
Fix compiler warnings so build is stable.  This whole output file business still
needs to be fixed.


Modified: mlpack/trunk/src/mlpack/methods/hmm/generate.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/hmm/generate.cpp	2011-11-08 04:08:48 UTC (rev 10177)
+++ mlpack/trunk/src/mlpack/methods/hmm/generate.cpp	2011-11-08 04:28:44 UTC (rev 10178)
@@ -112,13 +112,13 @@
   const int seqlen = CLI::GetParam<int>("hmm/length");
   const int seqlmax = CLI::GetParam<int>("hmm/lenmax");
   const int numseq = CLI::GetParam<int>("hmm/numseq");
-  const char* seqout = CLI::GetParam<std::string>("hmm/seqfile").c_str();
-  const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str();
+  //const char* seqout = CLI::GetParam<std::string>("hmm/seqfile").c_str();
+  //const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str();
 
   Log::Assert(seqlen <= seqlmax, "LENMAX must bigger than LENGTH");
   Log::Assert(numseq > 0, "NUMSEQ must be positive");
 
-  double step = (double) (seqlmax - seqlen) / numseq;
+  //double step = (double) (seqlmax - seqlen) / numseq;
 
   MixtureofGaussianHMM hmm;
   hmm.InitFromFile(profile);
@@ -163,13 +163,13 @@
   const int seqlen = CLI::GetParam<int>("hmm/length");
   const int seqlmax = CLI::GetParam<int>("hmm/lenmax");
   const int numseq = CLI::GetParam<int>("hmm/numseq");
-  const char* seqout = CLI::GetParam<std::string>("hmm/seqfile").c_str();
-  const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str();
+  //const char* seqout = CLI::GetParam<std::string>("hmm/seqfile").c_str();
+  //const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str();
 
   Log::Assert(seqlen <= seqlmax, "LENMAX must bigger than LENGTH");
   Log::Assert(numseq > 0, "NUMSEQ must be positive");
 
-  double step = (double) (seqlmax - seqlen) / numseq;
+  //double step = (double) (seqlmax - seqlen) / numseq;
 
   GaussianHMM hmm;
   hmm.InitFromFile(profile);
@@ -213,13 +213,13 @@
   const int seqlen = CLI::GetParam<int>("hmm/length");
   const int seqlmax = CLI::GetParam<int>("hmm/lenmax");
   const int numseq = CLI::GetParam<int>("hmm/numseq");
-  const char* seqout = CLI::GetParam<std::string>("hmm/seqfile").c_str();
-  const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str();
+  //const char* seqout = CLI::GetParam<std::string>("hmm/seqfile").c_str();
+  //const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str();
 
   Log::Assert(seqlen <= seqlmax, "LENMAX must bigger than LENGTH");
   Log::Assert(numseq > 0, "NUMSEQ must be positive");
 
-  double step = (double) (seqlmax - seqlen) / numseq;
+  //double step = (double) (seqlmax - seqlen) / numseq;
 
   DiscreteHMM hmm;
   hmm.InitFromFile(profile);

Modified: mlpack/trunk/src/mlpack/methods/hmm/loglik.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/hmm/loglik.cpp	2011-11-08 04:08:48 UTC (rev 10177)
+++ mlpack/trunk/src/mlpack/methods/hmm/loglik.cpp	2011-11-08 04:28:44 UTC (rev 10178)
@@ -97,7 +97,7 @@
   }
   const char* profile = CLI::GetParam<std::string>("hmm/profile").c_str();
   const char* seqin = CLI::GetParam<std::string>("hmm/seqfile").c_str();
-  const char* logout = CLI::GetParam<std::string>("hmm/logfile").c_str();
+  //const char* logout = CLI::GetParam<std::string>("hmm/logfile").c_str();
 
   MixtureofGaussianHMM hmm;
   hmm.InitFromFile(profile);
@@ -129,7 +129,7 @@
   }
   const char* profile = CLI::GetParam<std::string>("hmm/profile").c_str();
   const char* seqin = CLI::GetParam<std::string>("hmm/seqfile").c_str();
-  const char* logout = CLI::GetParam<std::string>("hmm/logfile").c_str();
+  //const char* logout = CLI::GetParam<std::string>("hmm/logfile").c_str();
 
   GaussianHMM hmm;
   hmm.InitFromFile(profile);
@@ -161,7 +161,7 @@
   }
   const char* profile = CLI::GetParam<std::string>("hmm/profile").c_str();
   const char* seqin = CLI::GetParam<std::string>("hmm/seqfile").c_str();
-  const char* logout = CLI::GetParam<std::string>("hmm/logfile").c_str();
+  //const char* logout = CLI::GetParam<std::string>("hmm/logfile").c_str();
 
   DiscreteHMM hmm;
   hmm.InitFromFile(profile);

Modified: mlpack/trunk/src/mlpack/methods/hmm/viterbi.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/hmm/viterbi.cpp	2011-11-08 04:08:48 UTC (rev 10177)
+++ mlpack/trunk/src/mlpack/methods/hmm/viterbi.cpp	2011-11-08 04:28:44 UTC (rev 10178)
@@ -94,7 +94,7 @@
   }
   const char* profile = CLI::GetParam<std::string>("hmm/profile").c_str();
   const char* seqin = CLI::GetParam<std::string>("hmm/seqfile").c_str(); //"seq.mix.out");
-  const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str(); //"state.viterbi.mix.out");
+  //const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str(); //"state.viterbi.mix.out");
 
   MixtureofGaussianHMM hmm;
   hmm.InitFromFile(profile);
@@ -130,7 +130,7 @@
   }
   const char* profile = CLI::GetParam<std::string>("hmm/profile").c_str();
   const char* seqin = CLI::GetParam<std::string>("hmm/seqfile").c_str(); //"seq.gauss.out");
-  const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str(); //"state.viterbi.gauss.out");
+  //const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str(); //"state.viterbi.gauss.out");
 
   GaussianHMM hmm;
   hmm.InitFromFile(profile);
@@ -165,7 +165,7 @@
   }
   const char* profile = CLI::GetParam<std::string>("hmm/profile").c_str();
   const char* seqin = CLI::GetParam<std::string>("hmm/seqfile").c_str(); //"seq.out");
-  const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str(); //"state.viterbi.out");
+  //const char* stateout = CLI::GetParam<std::string>("hmm/statefile").c_str(); //"state.viterbi.out");
 
   DiscreteHMM hmm;
 




More information about the mlpack-svn mailing list