[mlpack-svn] r16962 - 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:32:32 EDT 2014


Author: michaelfox99
Date: Tue Aug  5 09:32:31 2014
New Revision: 16962

Log:
Implemented Save, Load for hierarchical model support


Added:
   mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp
      - copied, changed from r16912, /mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp

Copied: mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp (from r16912, /mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp)
==============================================================================
--- /mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp	(original)
+++ mlpack/trunk/src/mlpack/methods/hmm/hmm.hpp	Tue Aug  5 09:32:31 2014
@@ -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 @@
    */
   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.
 



More information about the mlpack-svn mailing list