[mlpack-git] master: Implemented Save, Load for hierarchical model support (2bbe127)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:56:29 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 2bbe1271d0c637baeda400b299104030274085bf
Author: michaelfox99 <michaelfox99 at gmail.com>
Date: Tue Aug 5 13:32:31 2014 +0000
Implemented Save, Load for hierarchical model support
>---------------------------------------------------------------
2bbe1271d0c637baeda400b299104030274085bf
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.
More information about the mlpack-git
mailing list