[mlpack-git] master,mlpack-1.0.x: Don't transpose the labels upon loading; expect that they are going to be one line per label. (206648b)

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


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

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

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

commit 206648b1832e3da3795a90e01aa247672e7bc1f7
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Apr 14 19:16:48 2014 +0000

    Don't transpose the labels upon loading; expect that they are going to be one
    line per label.


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

206648b1832e3da3795a90e01aa247672e7bc1f7
 src/mlpack/methods/naive_bayes/nbc_main.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/naive_bayes/nbc_main.cpp b/src/mlpack/methods/naive_bayes/nbc_main.cpp
index 5620caa..12d43fe 100644
--- a/src/mlpack/methods/naive_bayes/nbc_main.cpp
+++ b/src/mlpack/methods/naive_bayes/nbc_main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char* argv[])
   {
     // Load labels.
     mat rawLabels;
-    data::Load(labelsFilename, rawLabels, true);
+    data::Load(labelsFilename, rawLabels, true, false);
 
     // Do the labels need to be transposed?
     if (rawLabels.n_rows == 1)



More information about the mlpack-git mailing list