[mlpack] 278/324: Implemented Save, Load for hierarchical model support

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 3f90d5239c31ba55d11456f35e11003a4d944e2d
Author: michaelfox99 <michaelfox99 at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Aug 5 13:32:31 2014 +0000

    Implemented Save, Load for hierarchical model support
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16962 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/methods/hmm/hmm.hpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/mlpack/methods/hmm/hmm.hpp b/src/mlpack/methods/hmm/hmm.hpp
index f416875..b3a3fe9 100644
--- a/src/mlpack/methods/hmm/hmm.hpp
+++ b/src/mlpack/methods/hmm/hmm.hpp
@@ -2,6 +2,7 @@
  * @file hmm.hpp
  * @author Ryan Curtin
  * @author Tran Quoc Long
+ * @author Michael Fox
  *
  * Definition of HMM class.
  */
@@ -290,6 +291,16 @@ class HMM
    */
   std::string ToString() const;
 
+  //! Save to SaveRestoreUtility
+  void Save(util::SaveRestoreUtility& sr) const;
+  //! Load from SaveRestoreUtility
+  void Load(const util::SaveRestoreUtility& sr);
+  
+  /**
+   * Returns a string indicating the type.
+   */
+  static std::string const Type() { return "HMM"; }
+  
  private:
   // Helper functions.
 

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