[mlpack-svn] r16964 - mlpack/trunk/src/mlpack/methods/hmm
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Aug 5 09:34:33 EDT 2014
Author: michaelfox99
Date: Tue Aug 5 09:34:32 2014
New Revision: 16964
Log:
Added legacy file conversion
Modified:
mlpack/trunk/src/mlpack/methods/hmm/hmm_util.hpp
Modified: mlpack/trunk/src/mlpack/methods/hmm/hmm_util.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/hmm/hmm_util.hpp (original)
+++ mlpack/trunk/src/mlpack/methods/hmm/hmm_util.hpp Tue Aug 5 09:34:32 2014
@@ -1,9 +1,9 @@
/**
* @file hmm_util.hpp
* @author Ryan Curtin
+ * @author Michael Fox
*
- * Save/load utilities for HMMs. This should be eventually merged into the HMM
- * class itself.
+ * Deprecated Save/load utilities for HMMs. See HMM::Save, HMM::Load.
*/
#ifndef __MLPACK_METHODS_HMM_HMM_UTIL_HPP
#define __MLPACK_METHODS_HMM_HMM_UTIL_HPP
@@ -14,8 +14,7 @@
namespace hmm {
/**
- * Save an HMM to file. This only works for GMMs, DiscreteDistributions, and
- * GaussianDistributions.
+ * Save an HMM to file (deprecated).
*
* @tparam Distribution Distribution type of HMM.
* @param sr SaveRestoreUtility to use.
@@ -24,8 +23,7 @@
void SaveHMM(const HMM<Distribution>& hmm, util::SaveRestoreUtility& sr);
/**
- * Load an HMM from file. This only works for GMMs, DiscreteDistributions, and
- * GaussianDistributions.
+ * Load an HMM from file (deprecated).
*
* @tparam Distribution Distribution type of HMM.
* @param sr SaveRestoreUtility to use.
@@ -33,6 +31,15 @@
template<typename Distribution>
void LoadHMM(HMM<Distribution>& hmm, util::SaveRestoreUtility& sr);
+/**
+ * Converter for HMMs saved using older MLPACK versions.
+ *
+ * @tparam Distribution Distribution type of HMM.
+ * @param sr SaveRestoreUtility to use.
+ */
+template<typename Distribution>
+void ConvertHMM(HMM<Distribution>& hmm, const util::SaveRestoreUtility& sr);
+
}; // namespace hmm
}; // namespace mlpack
More information about the mlpack-svn
mailing list