[mlpack-git] master: Fix type error. (2cbfd1a)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Mon Jul 13 04:05:07 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/8b2ca720828224607c70d2b539c43aecf8f4ec32...b4659b668021db631b3c8a48e3d735b513706fdc
>---------------------------------------------------------------
commit 2cbfd1abee91fef87371fe2e6e5e92df0dd72cd2
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Jul 13 06:53:54 2015 +0000
Fix type error.
>---------------------------------------------------------------
2cbfd1abee91fef87371fe2e6e5e92df0dd72cd2
src/mlpack/methods/gmm/gmm_impl.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/methods/gmm/gmm_impl.hpp b/src/mlpack/methods/gmm/gmm_impl.hpp
index d1eccad..8e870e4 100644
--- a/src/mlpack/methods/gmm/gmm_impl.hpp
+++ b/src/mlpack/methods/gmm/gmm_impl.hpp
@@ -112,7 +112,7 @@ GMM<FittingType>& GMM<FittingType>::operator=(const GMM<FittingType>& other)
if (fitter && ownsFitter)
delete fitter;
- fitter = new FittingType(other.fitter);
+ fitter = new FittingType(*other.fitter);
ownsFitter = true;
return *this;
@@ -440,6 +440,7 @@ void GMM<FittingType>::Serialize(Archive& ar, const unsigned int /* version */)
// Gaussian distribution.
if (Archive::is_loading::value)
dists.resize(gaussians);
+
for (size_t i = 0; i < gaussians; ++i)
{
std::ostringstream oss;
More information about the mlpack-git
mailing list