[mlpack-git] master: Fix syntax. (15b41bb)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Fri Dec 18 11:43:14 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/5ba11bc90223b55eecd5da4cfbe86c8fc40637a5...df229e45a5bd7842fe019e9d49ed32f13beb6aaa

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

commit 15b41bb79e074f6409d04ab112c8f4791387028a
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Dec 18 15:50:27 2015 +0000

    Fix syntax.


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

15b41bb79e074f6409d04ab112c8f4791387028a
 src/mlpack/methods/gmm/em_fit_impl.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mlpack/methods/gmm/em_fit_impl.hpp b/src/mlpack/methods/gmm/em_fit_impl.hpp
index f508fb8..ae771e7 100644
--- a/src/mlpack/methods/gmm/em_fit_impl.hpp
+++ b/src/mlpack/methods/gmm/em_fit_impl.hpp
@@ -93,7 +93,8 @@ void EMFit<InitialClusteringType, CovarianceConstraintPolicy>::Estimate(
           trans(condProb.col(i)));
 
       // Don't update if there's no probability of the Gaussian having points.
-      if (probRowSums[i] != 0.0) {
+      if (probRowSums[i] != 0.0)
+      {
         arma::mat covariance = (tmp * trans(tmpB)) / probRowSums[i];
         // Apply covariance constraint.
         constraint.ApplyConstraint(covariance);



More information about the mlpack-git mailing list