[mlpack] 280/324: Added legacy file conversion
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:18 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit 55d117a5d07c5515bfc1bd5f9f64738f3ab56589
Author: michaelfox99 <michaelfox99 at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Tue Aug 5 13:34:32 2014 +0000
Added legacy file conversion
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16964 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/methods/hmm/hmm_util.hpp | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/mlpack/methods/hmm/hmm_util.hpp b/src/mlpack/methods/hmm/hmm_util.hpp
index d542a2d..f825ec0 100644
--- a/src/mlpack/methods/hmm/hmm_util.hpp
+++ b/src/mlpack/methods/hmm/hmm_util.hpp
@@ -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 mlpack {
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 @@ template<typename Distribution>
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 @@ void SaveHMM(const HMM<Distribution>& hmm, util::SaveRestoreUtility& sr);
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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list