[mlpack-git] master: GMM::Save() now adds type information to XML files (4b7294f)

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


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

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

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

commit 4b7294f43cc332c5c5205b37e4668ff1ce79117f
Author: michaelfox99 <michaelfox99 at gmail.com>
Date:   Thu Aug 7 03:39:40 2014 +0000

    GMM::Save() now adds type information to XML files


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

4b7294f43cc332c5c5205b37e4668ff1ce79117f
 src/mlpack/methods/gmm/gmm_impl.hpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mlpack/methods/gmm/gmm_impl.hpp b/src/mlpack/methods/gmm/gmm_impl.hpp
index 4007849..0d58de7 100644
--- a/src/mlpack/methods/gmm/gmm_impl.hpp
+++ b/src/mlpack/methods/gmm/gmm_impl.hpp
@@ -137,6 +137,7 @@ void GMM<FittingType>::Save(const std::string& filename) const
 template<typename FittingType>
 void GMM<FittingType>::Save(util::SaveRestoreUtility& sr) const
 {
+  sr.SaveParameter(Type(), "type");
   sr.SaveParameter(gaussians, "gaussians");
   sr.SaveParameter(dimensionality, "dimensionality");
   sr.SaveParameter(weights, "weights");



More information about the mlpack-git mailing list