[mlpack-svn] r10816 - mlpack/trunk/src/mlpack/methods/naive_bayes
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Dec 14 18:27:08 EST 2011
Author: rcurtin
Date: 2011-12-14 18:27:08 -0500 (Wed, 14 Dec 2011)
New Revision: 10816
Modified:
mlpack/trunk/src/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp
Log:
This caused a problem for release-mode, so maybe this is the instability in the
test.
Modified: mlpack/trunk/src/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp 2011-12-14 23:26:23 UTC (rev 10815)
+++ mlpack/trunk/src/mlpack/methods/naive_bayes/naive_bayes_classifier_impl.hpp 2011-12-14 23:27:08 UTC (rev 10816)
@@ -86,8 +86,8 @@
}
// Find the index of the maximum value in tmp_vals.
- size_t maxIndex = 0;
- probs.max((arma::uword&) maxIndex);
+ arma::uword maxIndex = 0;
+ probs.max(maxIndex);
results[n] = maxIndex;
}
More information about the mlpack-svn
mailing list