[mlpack-svn] r10310 - mlpack/trunk/src/mlpack/methods/gmm
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Nov 17 11:32:12 EST 2011
Author: rcurtin
Date: 2011-11-17 11:32:12 -0500 (Thu, 17 Nov 2011)
New Revision: 10310
Modified:
mlpack/trunk/src/mlpack/methods/gmm/phi.hpp
Log:
Why did this ever pass any tests? I am officially confused.
Modified: mlpack/trunk/src/mlpack/methods/gmm/phi.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/gmm/phi.hpp 2011-11-17 05:15:19 UTC (rev 10309)
+++ mlpack/trunk/src/mlpack/methods/gmm/phi.hpp 2011-11-17 16:32:12 UTC (rev 10310)
@@ -109,7 +109,7 @@
arma::vec& probabilities)
{
// Column i of 'diffs' is the difference between x.col(i) and the mean.
- arma::mat diffs = x - (mean * arma::ones<arma::rowvec>(x.n_elem));
+ arma::mat diffs = x - (mean * arma::ones<arma::rowvec>(x.n_cols));
// Now, we only want to calculate the diagonal elements of (diffs' * cov^-1 *
// diffs). We just don't need any of the other elements. We can calculate
More information about the mlpack-svn
mailing list