[mlpack-git] master: Added legacy file conversion (3c8b5d3)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:56:33 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 3c8b5d3e5d24e3f01e0958187b5596d720ee7cc9
Author: michaelfox99 <michaelfox99 at gmail.com>
Date:   Tue Aug 5 13:34:32 2014 +0000

    Added legacy file conversion


>---------------------------------------------------------------

3c8b5d3e5d24e3f01e0958187b5596d720ee7cc9
 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
 



More information about the mlpack-git mailing list